From 1adb7d414d5d38d77736cdc6485726221f7d953e Mon Sep 17 00:00:00 2001 From: Thomas Queste Date: Mon, 25 Mar 2024 13:09:39 +0100 Subject: [PATCH] perf: remove superfluous layer by concatenating instructions --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 498d67e..46301b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,11 +39,9 @@ RUN apk add --no-cache --virtual=build-dependencies \ wget \ python3 \ py3-tz \ - py3-pip - -RUN python -m venv /app/venv - -RUN /app/venv/bin/pip install --no-cache-dir radicale==$VERSION passlib[bcrypt] \ + py3-pip \ + && python -m venv /app/venv \ + && /app/venv/bin/pip install --no-cache-dir radicale==$VERSION passlib[bcrypt] \ && apk del --purge build-dependencies \ && addgroup -g $BUILD_GID radicale \ && adduser -D -s /bin/false -H -u $BUILD_UID -G radicale radicale \