From 1ef60e8d5db39f772b6966e4be968e32f6b12b2f Mon Sep 17 00:00:00 2001 From: Daoud Clarke Date: Sat, 24 Dec 2022 20:18:02 +0000 Subject: [PATCH] Put install in correct place --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 83309f8..c212174 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,8 +14,6 @@ ENV PIP_DEFAULT_TIMEOUT=100 \ POETRY_VERSION=1.1.12 -RUN apt update && apt install -y postgresql-client - # Create a /venv directory & environment. # This directory will be copied into the final stage of docker build. RUN python -m venv /venv @@ -33,6 +31,8 @@ RUN /venv/bin/pip install pip --upgrade && \ 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 --from=builder /venv /venv