chore: Merge #7

减小镜像体积
This commit is contained in:
梓澄 2023-12-15 18:42:37 +08:00 committed by GitHub
commit 3eec445dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,11 @@
FROM python:3.10.13-slim-bullseye
FROM python:3.10-alpine
WORKDIR /app
COPY . /app
COPY ./main.py .
COPY ./common ./common
COPY ./modules ./modules
COPY ./requirements.txt .
# 指定源, 如果后期源挂了, 更换个源就可以.
RUN pip install --no-cache -i https://pypi.mirrors.ustc.edu.cn/simple/ -r requirements.txt