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 @@
  • TUI 模式:docker run -it joeanamier/xhs-downloader
  • API 模式:docker run -it joeanamier/xhs-downloader python main.py server
  • +
  • 运行容器 + +
  • Docker 运行项目时不支持 命令行调用模式,无法使用 读取剪贴板监听剪贴板 功能,可以正常粘贴内容,其他功能如有异常请反馈!

    ⌨️ 源码运行

    diff --git a/README_EN.md b/README_EN.md index 4b68369..4857d32 100644 --- a/README_EN.md +++ b/README_EN.md @@ -84,6 +84,12 @@
  • TUI Mode: docker run -it joeanamier/xhs-downloader
  • API Mode: docker run -it joeanamier/xhs-downloader python main.py server
  • +
  • Run Container + +
  • When 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!

    ⌨️ Source Code Run