mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2025-12-26 04:48:05 +08:00
chore: 更新 Dockerfile 文件
This commit is contained in:
parent
7e0b0aca30
commit
de28b9de69
20
Dockerfile
20
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
|
||||
|
||||
|
||||
@ -83,6 +83,12 @@
|
||||
<li>TUI 模式:<code>docker run -it joeanamier/xhs-downloader</code></li>
|
||||
<li>API 模式:<code>docker run -it joeanamier/xhs-downloader python main.py server</code></li>
|
||||
</ul>
|
||||
<li>运行容器
|
||||
<ul>
|
||||
<li>启动容器:<code>docker start -i 容器名称/容器 ID</code></li>
|
||||
<li>重启容器:<code>docker restart -i 容器名称/容器 ID</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ol>
|
||||
<p>Docker 运行项目时不支持 <b>命令行调用模式</b>,无法使用 <b>读取剪贴板</b> 与 <b>监听剪贴板</b> 功能,可以正常粘贴内容,其他功能如有异常请反馈!</p>
|
||||
<h2>⌨️ 源码运行</h2>
|
||||
|
||||
@ -84,6 +84,12 @@
|
||||
<li>TUI Mode: <code>docker run -it joeanamier/xhs-downloader</code></li>
|
||||
<li>API Mode: <code>docker run -it joeanamier/xhs-downloader python main.py server</code></li>
|
||||
</ul>
|
||||
<li>Run Container
|
||||
<ul>
|
||||
<li>Start Container: <code>docker start -i ContainerName/ContainerID</code></li>
|
||||
<li>Restart Container: <code>docker restart -i ContainerName/ContainerID</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ol>
|
||||
<p>When running the project via Docker, the <b>command line call mode</b> is not supported. The <b>clipboard reading</b> and <b>clipboard monitoring</b> functions are unavailable, but pasting content works fine. Please provide feedback if other features are not functioning properly!</p>
|
||||
<h2>⌨️ Source Code Run</h2>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user