Put install in correct place
This commit is contained in:
parent
8e613dd368
commit
1ef60e8d5d
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,6 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
|
||||||
POETRY_VERSION=1.1.12
|
POETRY_VERSION=1.1.12
|
||||||
|
|
||||||
|
|
||||||
RUN apt update && apt install -y postgresql-client
|
|
||||||
|
|
||||||
# Create a /venv directory & environment.
|
# Create a /venv directory & environment.
|
||||||
# This directory will be copied into the final stage of docker build.
|
# This directory will be copied into the final stage of docker build.
|
||||||
RUN python -m venv /venv
|
RUN python -m venv /venv
|
||||||
|
@ -33,6 +31,8 @@ RUN /venv/bin/pip install pip --upgrade && \
|
||||||
|
|
||||||
FROM base as final
|
FROM base as final
|
||||||
|
|
||||||
|
RUN apt update && apt install -y postgresql-client
|
||||||
|
|
||||||
# Copy only the required /venv directory from the builder image that contains mwmbl and its dependencies
|
# Copy only the required /venv directory from the builder image that contains mwmbl and its dependencies
|
||||||
COPY --from=builder /venv /venv
|
COPY --from=builder /venv /venv
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue