Skip to content

Commit de421f7

Browse files
committed
Optimze build
Signed-off-by: eyuen <eyuen@redhat.com>
1 parent 1b7fac7 commit de421f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ FROM python:slim
1313

1414
WORKDIR /projects
1515

16-
COPY requirements.txt requirements.txt
17-
1816
RUN python3 -m venv venv
1917
RUN . venv/bin/activate
18+
19+
# optimize image caching
20+
COPY requirements.txt .
2021
RUN pip install -r requirements.txt
2122

2223
COPY . .

0 commit comments

Comments
 (0)