gordonchan commited on
Commit
7d9ec4a
·
verified ·
1 Parent(s): a088cff

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -35
Dockerfile CHANGED
@@ -1,35 +1 @@
1
- # 此Dockerfile适用于“无本地模型”的迷你运行环境构建
2
- # 如果需要使用chatglm等本地模型或者latex运行依赖,请参考 docker-compose.yml
3
- # - 如何构建: 先修改 `config.py`, 然后 `docker build -t gpt-academic . `
4
- # - 如何运行(Linux下): `docker run --rm -it --net=host gpt-academic `
5
- # - 如何运行(其他操作系统,选择任意一个固定端口50923): `docker run --rm -it -e WEB_PORT=50923 -p 50923:50923 gpt-academic `
6
- FROM python:3.11
7
-
8
-
9
- # 非必要步骤,更换pip源 (以下三行,可以删除)
10
- RUN echo '[global]' > /etc/pip.conf && \
11
- echo 'index-url = https://mirrors.aliyun.com/pypi/simple/' >> /etc/pip.conf && \
12
- echo 'trusted-host = mirrors.aliyun.com' >> /etc/pip.conf
13
-
14
-
15
- # 进入工作路径(必要)
16
- WORKDIR /gpt
17
-
18
-
19
- # 安装大部分依赖,利用Docker缓存加速以后的构建 (以下三行,可以删除)
20
- COPY requirements.txt ./
21
- COPY ./docs/gradio-3.32.6-py3-none-any.whl ./docs/gradio-3.32.6-py3-none-any.whl
22
- RUN pip3 install -r requirements.txt
23
-
24
-
25
- # 装载项目文件,安装剩余依赖(必要)
26
- COPY . .
27
- RUN pip3 install -r requirements.txt
28
-
29
-
30
- # 非必要步骤,用于预热模块(可以删除)
31
- RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'
32
-
33
-
34
- # 启动(必要)
35
- CMD ["python3", "-u", "main.py"]
 
1
+ from ghcr.io/binary-husky/gpt_academic_nolocal:master