summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-29 01:06:37 +0200
committerGitHub <noreply@github.com>2023-04-29 01:06:37 +0200
commit22bd61e56cd165a72ab1ea6ed6ec92802b13d0e8 (patch)
treeac0c5e0e85dc6fb786629412a8476cb431ccc8af /Dockerfile
parentMerge branch 'main' of https://github.com/xtekky/gpt4free (diff)
parentCorrect Dockerfile directory and install requirement first (diff)
downloadgpt4free-22bd61e56cd165a72ab1ea6ed6ec92802b13d0e8.tar
gpt4free-22bd61e56cd165a72ab1ea6ed6ec92802b13d0e8.tar.gz
gpt4free-22bd61e56cd165a72ab1ea6ed6ec92802b13d0e8.tar.bz2
gpt4free-22bd61e56cd165a72ab1ea6ed6ec92802b13d0e8.tar.lz
gpt4free-22bd61e56cd165a72ab1ea6ed6ec92802b13d0e8.tar.xz
gpt4free-22bd61e56cd165a72ab1ea6ed6ec92802b13d0e8.tar.zst
gpt4free-22bd61e56cd165a72ab1ea6ed6ec92802b13d0e8.zip
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile18
1 files changed, 18 insertions, 0 deletions
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"]