summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorMIDORIBIN <aquarion123@gmail.com>2023-05-10 17:45:00 +0200
committerMIDORIBIN <aquarion123@gmail.com>2023-05-10 17:45:00 +0200
commita3de6208fb6acec4f1f47bb5252a7ebbeb2085a3 (patch)
treedca8268e36be8ef01db234c87994897c4a18861e /Dockerfile
parentUpdate README.md (diff)
downloadgpt4free-a3de6208fb6acec4f1f47bb5252a7ebbeb2085a3.tar
gpt4free-a3de6208fb6acec4f1f47bb5252a7ebbeb2085a3.tar.gz
gpt4free-a3de6208fb6acec4f1f47bb5252a7ebbeb2085a3.tar.bz2
gpt4free-a3de6208fb6acec4f1f47bb5252a7ebbeb2085a3.tar.lz
gpt4free-a3de6208fb6acec4f1f47bb5252a7ebbeb2085a3.tar.xz
gpt4free-a3de6208fb6acec4f1f47bb5252a7ebbeb2085a3.tar.zst
gpt4free-a3de6208fb6acec4f1f47bb5252a7ebbeb2085a3.zip
Diffstat (limited to '')
-rw-r--r--Dockerfile35
1 files changed, 12 insertions, 23 deletions
diff --git a/Dockerfile b/Dockerfile
index a6ebc5bd..2d3a9d65 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,30 +1,19 @@
-FROM python:3.11 as builder
-
-WORKDIR /usr/app
-ENV PATH="/usr/app/venv/bin:$PATH"
-
-RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/*
-
-RUN mkdir -p /usr/app
-RUN python -m venv ./venv
-
-COPY requirements.txt .
-
-RUN pip install -r requirements.txt
-
-# RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
-# RUN pip config set global.trusted-host mirrors.aliyun.com
-
FROM python:3.11
-WORKDIR /usr/app
-ENV PATH="/usr/app/venv/bin:$PATH"
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends ffmpeg \
+ && apt-get -y clean \
+ && rm -rf /var/lib/apt/lists/*
+
+COPY requirements.txt /tmp
+RUN pip install --upgrade pip \
+ && pip install -r /tmp/requirements.txt \
+ && rm /tmp/requirements.txt
-COPY --from=builder /usr/app/venv ./venv
-COPY . .
+COPY . /root/gpt4free
-RUN cp ./gui/streamlit_app.py .
+WORKDIR /root/gpt4free
-CMD ["streamlit", "run", "streamlit_app.py"]
+CMD ["streamlit", "run", "./gui/streamlit_app.py"]
EXPOSE 8501