mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-11 22:50:45 +08:00
26 lines
440 B
Docker
26 lines
440 B
Docker
# 使用官方 Python 镜像作为基础镜像
|
|
FROM python:3.13-alpine
|
|
|
|
# 设置工作目录
|
|
WORKDIR /app
|
|
|
|
# 将当前目录中的文件添加到工作目录中
|
|
COPY . /app
|
|
|
|
# 安装依赖
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# 时区
|
|
ENV TZ="Asia/Shanghai"
|
|
|
|
#构建版本
|
|
ARG BUILD_SHA
|
|
ARG BUILD_TAG
|
|
ENV BUILD_SHA=$BUILD_SHA
|
|
ENV BUILD_TAG=$BUILD_TAG
|
|
|
|
# 端口
|
|
EXPOSE 5005
|
|
|
|
# 运行应用程序
|
|
CMD ["python", "./app/run.py"] |