diff options
author | Valerii <81074936+valerii-chirkov@users.noreply.github.com> | 2023-05-05 00:14:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 00:14:29 +0200 |
commit | b3754facf9ada5bbf018a3b38151a2bd384afd52 (patch) | |
tree | 9f7b519081274c8f1c735aa2145b935acf335755 /Dockerfile | |
parent | add(quora/tests): Added a module with quora tests. (diff) | |
parent | Merge pull request #443 from TheTrueShell/main (diff) | |
download | gpt4free-b3754facf9ada5bbf018a3b38151a2bd384afd52.tar gpt4free-b3754facf9ada5bbf018a3b38151a2bd384afd52.tar.gz gpt4free-b3754facf9ada5bbf018a3b38151a2bd384afd52.tar.bz2 gpt4free-b3754facf9ada5bbf018a3b38151a2bd384afd52.tar.lz gpt4free-b3754facf9ada5bbf018a3b38151a2bd384afd52.tar.xz gpt4free-b3754facf9ada5bbf018a3b38151a2bd384afd52.tar.zst gpt4free-b3754facf9ada5bbf018a3b38151a2bd384afd52.zip |
Diffstat (limited to '')
-rw-r--r-- | Dockerfile | 29 |
1 files changed, 20 insertions, 9 deletions
@@ -1,18 +1,29 @@ -FROM python:3.10 +FROM python:3.11 as builder -RUN apt-get update && apt-get install -y git +WORKDIR /usr/app +ENV PATH="/usr/app/venv/bin:$PATH" -RUN mkdir -p /usr/src/gpt4free -WORKDIR /usr/src/gpt4free +#RUN apt-get update && apt-get install -y git +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 -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 . +FROM python:3.11 -EXPOSE 8501 +WORKDIR /usr/app +ENV PATH="/usr/app/venv/bin:$PATH" + +COPY --from=builder /usr/app/venv ./venv +COPY . . + +RUN cp ./gui/streamlit_app.py . CMD ["streamlit", "run", "streamlit_app.py"] + +EXPOSE 8501 |