Skip to content

Commit

Permalink
perf: remove superfluous layer by concatenating instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsquest committed Mar 25, 2024
1 parent e4ff28b commit ba68b86
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit ba68b86

Please sign in to comment.