Skip to content

Commit c6ebd1f

Browse files
author
Pieter van Beerendonk
committed
venv2
1 parent ccda58c commit c6ebd1f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docker/backend/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ RUN mkdir code
1010
WORKDIR /code
1111
COPY requirements.txt ./
1212

13-
RUN pip3 install -Ur requirements.txt
13+
RUN python3 -m venv .venv
14+
RUN python3 .venv/bin/pip install -Ur requirements.txt
1415

1516
# run app
1617
EXPOSE 5000

docker/tester/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ WORKDIR /code
2020
COPY requirements.txt /requirements.txt
2121
COPY tests/requirements.txt /requirements.tests.txt
2222
RUN python3 -m venv .venv
23-
RUN python3 .venv/bin/pip install -r requirements.txt
24-
RUN python3 .venv/bin/pip install -r requirements.tests.txt
23+
RUN python3 .venv/bin/pip install -Ur requirements.txt
24+
RUN python3 .venv/bin/pip install -Ur requirements.tests.txt
2525

2626
# run app
2727
ENTRYPOINT ["pytest"]

0 commit comments

Comments
 (0)