Skip to content

Commit

Permalink
chore(build): shrink image size
Browse files Browse the repository at this point in the history
  • Loading branch information
oren.zhang committed Nov 1, 2024
1 parent c6bda58 commit 5132e2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM python:3.10
FROM python:3.10.15-slim

RUN mkdir -p /usr/src/app/logs /usr/src/app/tmp /usr/share/fonts/zh_cn

COPY ./support-files/fonts/* /usr/share/fonts/zh_cn
RUN fc-list :lang=zh
WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
RUN pip3 install -U pip && pip3 install -r requirements.txt

COPY . /usr/src/app
WORKDIR /usr/src/app
RUN mkdir -p /usr/src/app/logs /usr/src/app/tmp /usr/share/fonts/zh_cn

RUN pip3 install -U pip && pip3 install -r requirements.txt
RUN bin/proxy_gemini.sh
12 changes: 0 additions & 12 deletions DockerfileBase

This file was deleted.

0 comments on commit 5132e2e

Please sign in to comment.