summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 5ed902fba63319f95a9df1ef27b86b15c538e32d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"]