liyishuai commited on
Commit
4a4fb66
1 Parent(s): a13ed23

Dockerfile: two-stage copy

Browse files
Files changed (1) hide show
  1. 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"]