summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxiangsx <1984871009@qq.com>2023-04-28 11:13:51 +0200
committerxiangsx <1984871009@qq.com>2023-04-28 11:13:51 +0200
commit61d6d03453900d2b4cac54bda949077cda4b85c3 (patch)
tree0dcfc9d273880d1d12fa07207011b02216bf7b04
parentMerge pull request #241 from ethanx40/main (diff)
downloadgpt4free-61d6d03453900d2b4cac54bda949077cda4b85c3.tar
gpt4free-61d6d03453900d2b4cac54bda949077cda4b85c3.tar.gz
gpt4free-61d6d03453900d2b4cac54bda949077cda4b85c3.tar.bz2
gpt4free-61d6d03453900d2b4cac54bda949077cda4b85c3.tar.lz
gpt4free-61d6d03453900d2b4cac54bda949077cda4b85c3.tar.xz
gpt4free-61d6d03453900d2b4cac54bda949077cda4b85c3.tar.zst
gpt4free-61d6d03453900d2b4cac54bda949077cda4b85c3.zip
-rw-r--r--Docker/Dockerfile12
-rw-r--r--Dockerfile18
2 files changed, 18 insertions, 12 deletions
diff --git a/Docker/Dockerfile b/Docker/Dockerfile
deleted file mode 100644
index a7bb7d0a..00000000
--- a/Docker/Dockerfile
+++ /dev/null
@@ -1,12 +0,0 @@
-FROM python:3.10-slim
-
-RUN apt-get update && apt-get install -y git
-
-RUN git clone https://github.com/xtekky/gpt4free.git
-WORKDIR /gpt4free
-RUN pip install --no-cache-dir -r requirements.txt
-RUN cp gui/streamlit_app.py .
-
-EXPOSE 8501
-
-CMD ["streamlit", "run", "streamlit_app.py"]
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..5ed902fb
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,18 @@
+FROM python:3.10
+
+RUN apt-get update && apt-get install -y git
+
+RUN mkdir -p /usr/src/gpt4free
+WORKDIR /usr/src/gpt4free
+
+# RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
+# RUN pip config set global.trusted-host mirrors.aliyun.com
+
+COPY requirements.txt /usr/src/gpt4free/
+RUN pip install --no-cache-dir -r requirements.txt
+COPY . /usr/src/gpt4free
+RUN cp gui/streamlit_app.py .
+
+EXPOSE 8501
+
+CMD ["streamlit", "run", "streamlit_app.py"]