Sfoglia il codice sorgente

Dockerfile: Reduces layers and size

Frank Sachsenheim 5 anni fa
parent
commit
d90369b67c
1 ha cambiato i file con 4 aggiunte e 6 eliminazioni
  1. 4 6
      Dockerfile

+ 4 - 6
Dockerfile

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