Dockerfile: Reduces layers and size
This commit is contained in:
parent
ec19a1a12c
commit
d90369b67c
10
Dockerfile
10
Dockerfile
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user