Skip to content

Instantly share code, notes, and snippets.

@lgaticaq
Created October 3, 2019 22:28
Show Gist options
  • Save lgaticaq/03d85342cdbfb6cb1213c890d550bf99 to your computer and use it in GitHub Desktop.
Save lgaticaq/03d85342cdbfb6cb1213c890d550bf99 to your computer and use it in GitHub Desktop.
Radicale
FROM python:3.7.4-alpine3.10
# Version of Radicale (e.g. 2.1.11)
ARG VERSION=2.1.11
# Install dependencies
RUN apk add --no-cache build-base libffi-dev
# Install Radicale
RUN wget --quiet https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz --output-document=radicale.tar.gz && \
tar xzf radicale.tar.gz && \
pip install ./Radicale-${VERSION}[md5,bcrypt] && \
rm -r radicale.tar.gz Radicale-${VERSION}
# 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"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment