Dockerfile: Reduces layers and size

This commit is contained in:
Frank Sachsenheim 2021-01-02 16:33:05 +01:00 committed by Unrud
parent ec19a1a12c
commit d90369b67c

View File

@ -11,9 +11,7 @@ EXPOSE 5232
# Run Radicale (Configure it here or provide a "config" file!) # Run Radicale (Configure it here or provide a "config" file!)
CMD ["radicale", "--hosts", "0.0.0.0:5232"] CMD ["radicale", "--hosts", "0.0.0.0:5232"]
# Install dependencies RUN apk add --no-cache ca-certificates openssl \
RUN apk add --no-cache gcc musl-dev libffi-dev ca-certificates openssl && apk add --no-cache --virtual .build-deps gcc libffi-dev musl-dev \
# Install Radicale && pip install --no-cache-dir "Radicale[bcrypt] @ https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz" \
RUN pip install --no-cache-dir "Radicale[bcrypt] @ https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz" && apk del .build-deps
# Remove build dependencies
RUN apk del gcc musl-dev libffi-dev