radicale/Dockerfile
2020-05-22 16:34:02 +02:00

32 lines
928 B
Docker

FROM alpine:latest
# Version of Radicale (e.g. 3.0.x)
ARG VERSION=master
# Install dependencies
RUN apk add --no-cache \
python3 \
python3-dev \
build-base \
libffi-dev \
ca-certificates \
openssl
# Install Radicale
RUN wget --quiet https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz --output-document=radicale.tar.gz && \
tar xzf radicale.tar.gz && \
pip3 install ./Radicale-${VERSION} && \
rm -r radicale.tar.gz Radicale-${VERSION}
# Remove build dependencies
RUN apk del \
python3-dev \
build-base \
libffi-dev
# Persistent storage for data (Mount it somewhere on the host!)
VOLUME /var/lib/radicale
# Configuration data (Put the "config" file here!)
VOLUME /etc/radicale
# TCP port of Radicale (Publish it on a host interface!)
EXPOSE 5232
# Run Radicale (Configure it here or provide a "config" file!)
CMD ["radicale", "--hosts", "0.0.0.0:5232"]