Skip to content

Commit

Permalink
ci: Replace the base image to reduce the image size
Browse files Browse the repository at this point in the history
  • Loading branch information
nfe-w committed Jan 3, 2024
1 parent cff2b7a commit f5a00f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.9-alpine

# 设置容器的时区为中国北京时间
ENV TZ=Asia/Shanghai
Expand All @@ -7,7 +7,8 @@ WORKDIR /app

COPY . /app/

RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple \
RUN apk add --no-cache bash \
&& pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple \
&& chmod +x entrypoint.sh

ENTRYPOINT ["./entrypoint.sh"]

0 comments on commit f5a00f3

Please sign in to comment.