-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ddabf0
commit 60b45ff
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 使用 Python 3.9 作为基础镜像 | ||
FROM python:3.9-slim | ||
|
||
# 设置工作目录 | ||
WORKDIR /app | ||
|
||
# 安装 git | ||
RUN apt-get update && apt-get install -y git && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# 克隆仓库 | ||
RUN git clone https://github.com/lissettecarlr/ncmdump . | ||
|
||
# 安装依赖 | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# 暴露端口 | ||
EXPOSE 23231 | ||
|
||
# 启动 Streamlit 服务 | ||
CMD ["streamlit", "run", "web.py", "--server.port", "23231", "--server.maxUploadSize=500", "--server.address", "0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters