File tree Expand file tree Collapse file tree 1 file changed +12
-23
lines changed Expand file tree Collapse file tree 1 file changed +12
-23
lines changed Original file line number Diff line number Diff line change 1
- FROM python:3.11 as builder
2
-
3
- WORKDIR /usr/app
4
- ENV PATH="/usr/app/venv/bin:$PATH"
5
-
6
- RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/*
7
-
8
- RUN mkdir -p /usr/app
9
- RUN python -m venv ./venv
10
-
11
- COPY requirements.txt .
12
-
13
- RUN pip install -r requirements.txt
14
-
15
- # RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
16
- # RUN pip config set global.trusted-host mirrors.aliyun.com
17
-
18
1
FROM python:3.11
19
2
20
- WORKDIR /usr/app
21
- ENV PATH="/usr/app/venv/bin:$PATH"
3
+ RUN apt-get update \
4
+ && apt-get install -y --no-install-recommends ffmpeg \
5
+ && apt-get -y clean \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ COPY requirements.txt /tmp
9
+ RUN pip install --upgrade pip \
10
+ && pip install -r /tmp/requirements.txt \
11
+ && rm /tmp/requirements.txt
22
12
23
- COPY --from=builder /usr/app/venv ./venv
24
- COPY . .
13
+ COPY . /root/gpt4free
25
14
26
- RUN cp ./gui/streamlit_app.py .
15
+ WORKDIR /root/gpt4free
27
16
28
- CMD ["streamlit" , "run" , "streamlit_app.py" ]
17
+ CMD ["streamlit" , "run" , "./gui/ streamlit_app.py" ]
29
18
30
19
EXPOSE 8501
You can’t perform that action at this time.
0 commit comments