refactor: combine RUN commands

This commit is contained in:
Jeffrey Serio 2023-09-17 21:53:52 -05:00
parent f789f08470
commit cae250a5d7

View File

@ -7,9 +7,9 @@ ENV PYTHONFAULTHANDLER=1 \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100
RUN python -m venv /venv
COPY requirements.txt ./
RUN /venv/bin/pip install -r /requirements.txt
RUN python -m venv /venv \
&& /venv/bin/pip install -r /requirements.txt
FROM builder as final