quark-auto-save/Dockerfile

28 lines
553 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 使用官方 Python 镜像作为基础镜像
FROM python:3.13-alpine
# 设置工作目录
WORKDIR /app
# 将当前目录中的文件添加到工作目录中
COPY . /app
# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt
# 时区
ENV TZ="Asia/Shanghai"
#构建版本
ARG VERSION
ARG BUILD_SHA
ARG BUILD_TAG=v${VERSION}
ENV BUILD_SHA=$BUILD_SHA
ENV BUILD_TAG=$BUILD_TAG
# 端口配置 (可通过 -e PORT=xxxx 修改适用于桥接模式和host模式)
ENV PORT=5005
EXPOSE 5005
# 运行应用程序
CMD ["python", "./app/run.py"]