diff --git a/Dockerfile b/Dockerfile index c18bf39..2582285 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index bdc59bf..ee28bf5 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,12 @@
docker run -it joeanamier/xhs-downloaderdocker run -it joeanamier/xhs-downloader python main.py serverdocker start -i 容器名称/容器 IDdocker restart -i 容器名称/容器 IDDocker 运行项目时不支持 命令行调用模式,无法使用 读取剪贴板 与 监听剪贴板 功能,可以正常粘贴内容,其他功能如有异常请反馈!
docker run -it joeanamier/xhs-downloaderdocker run -it joeanamier/xhs-downloader python main.py serverdocker start -i ContainerName/ContainerIDdocker restart -i ContainerName/ContainerIDWhen running the project via Docker, the command line call mode is not supported. The clipboard reading and clipboard monitoring functions are unavailable, but pasting content works fine. Please provide feedback if other features are not functioning properly!