返回提交历史
Deleted
Docker/Dockerfile
+0
-12
Added
Dockerfile
+18
-0
XFEstudio/gpt4free
Correct Dockerfile directory and install requirement first
61d6d034
代码差异
2 个文件
+18
-12
@@ -1,12 +0,0 @@
1
FROM python:3.10-slim
2
3
RUN apt-get update && apt-get install -y git
4
5
RUN git clone https://github.com/xtekky/gpt4free.git
6
WORKDIR /gpt4free
7
RUN pip install --no-cache-dir -r requirements.txt
8
RUN cp gui/streamlit_app.py .
9
10
EXPOSE 8501
11
12
CMD ["streamlit", "run", "streamlit_app.py"]
@@ -0,0 +1,18 @@
1
FROM python:3.10
2
3
RUN apt-get update && apt-get install -y git
4
5
RUN mkdir -p /usr/src/gpt4free
6
WORKDIR /usr/src/gpt4free
7
8
# RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
9
# RUN pip config set global.trusted-host mirrors.aliyun.com
10
11
COPY requirements.txt /usr/src/gpt4free/
12
RUN pip install --no-cache-dir -r requirements.txt
13
COPY . /usr/src/gpt4free
14
RUN cp gui/streamlit_app.py .
15
16
EXPOSE 8501
17
18
CMD ["streamlit", "run", "streamlit_app.py"]