File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ RUN mkdir code
1010WORKDIR /code
1111COPY 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
1617EXPOSE 5000
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ WORKDIR /code
2020COPY requirements.txt /requirements.txt
2121COPY tests/requirements.txt /requirements.tests.txt
2222RUN 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
2727ENTRYPOINT ["pytest" ]
You can’t perform that action at this time.
0 commit comments