Skip to content

Commit c92872b

Browse files
committed
Split copy of files inside image to avoid useless reinstall of dependencies when only frontend app or main.py change
1 parent d6e784f commit c92872b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ RUN pip install virtualenv
77

88
RUN apk add -U --no-cache git
99

10-
COPY . /app
10+
COPY ./requirements.txt /app/requirements.txt
1111
RUN virtualenv /env && /env/bin/pip install --no-cache-dir -r /app/requirements.txt
1212

13+
COPY . /app
14+
1315
VOLUME ["/opt/docker-compose-projects"]
1416

1517
COPY demo-projects /opt/docker-compose-projects

0 commit comments

Comments
 (0)