chore: 更新 Dockerfile 文件

This commit is contained in:
JoeanAmier
2024-11-08 20:32:02 +08:00
parent 7e0b0aca30
commit de28b9de69
3 changed files with 24 additions and 8 deletions

View File

@@ -1,15 +1,19 @@
FROM python:3.12.4-slim
FROM python:3.12-slim
WORKDIR /app
LABEL name="XHS-Downloader" authors="JoeanAmier" repository="https://github.com/JoeanAmier/XHS-Downloader"
COPY locale /locale
COPY source /source
COPY static /static
COPY LICENSE /LICENSE
COPY main.py /main.py
COPY requirements.txt /requirements.txt
COPY locale /app/locale
COPY source /app/source
COPY static /app/static
COPY LICENSE /app/LICENSE
COPY main.py /app/main.py
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
VOLUME /app
EXPOSE 8000