mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 08:29:30 -04:00
Correct Dockerfile directory and install requirement first
This commit is contained in:
parent
8fe493a38a
commit
61d6d03453
@ -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"]
|
|
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -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"]
|
Loading…
Reference in New Issue
Block a user