Spaces:
Paused
Paused
Dockerfile: two-stage copy
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -5,9 +5,10 @@ RUN echo '[global]' > /etc/pip.conf && \
|
|
5 |
echo 'trusted-host = mirrors.aliyun.com' >> /etc/pip.conf
|
6 |
|
7 |
|
8 |
-
COPY . /gpt
|
9 |
WORKDIR /gpt
|
|
|
10 |
RUN pip3 install -r requirements.txt
|
11 |
|
|
|
12 |
|
13 |
CMD ["python3", "-u", "main.py"]
|
|
|
5 |
echo 'trusted-host = mirrors.aliyun.com' >> /etc/pip.conf
|
6 |
|
7 |
|
|
|
8 |
WORKDIR /gpt
|
9 |
+
COPY requirements.txt .
|
10 |
RUN pip3 install -r requirements.txt
|
11 |
|
12 |
+
COPY . .
|
13 |
|
14 |
CMD ["python3", "-u", "main.py"]
|