feat: 新增docker

This commit is contained in:
gaze
2025-04-25 15:17:45 +08:00
parent 60e32707c0
commit d5348c381b
7 changed files with 55 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM python:3.9.22-alpine3.21
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/ && \
pip3 install --no-cache-dir -r requirements.txt
COPY . .
RUN chmod +x /app/entrypoint.sh
ENV TZ=Asia/Shanghai
EXPOSE 5000
CMD ["/app/entrypoint.sh"]