Synced with origin
This commit is contained in:
22
Dockerfile
22
Dockerfile
@@ -1,19 +1,17 @@
|
||||
# This file is intended to be used apart from the containing source code tree.
|
||||
|
||||
FROM python:3-alpine
|
||||
|
||||
# Version of Radicale (e.g. 3.0.x)
|
||||
# Version of Radicale (e.g. v3)
|
||||
ARG VERSION=master
|
||||
# Persistent storage for data (Mount it somewhere on the host!)
|
||||
# Persistent storage for data
|
||||
VOLUME /var/lib/radicale
|
||||
# Configuration data (Put the "config" file here!)
|
||||
VOLUME /etc/radicale
|
||||
# TCP port of Radicale (Publish it on a host interface!)
|
||||
# TCP port of Radicale
|
||||
EXPOSE 5232
|
||||
# Run Radicale (Configure it here or provide a "config" file!)
|
||||
# Run Radicale
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user