1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00
Radicale/Dockerfile

22 lines
767 B
Text
Raw Permalink Normal View History

2020-08-07 02:28:22 +02:00
FROM python:3-alpine
2014-10-20 00:10:19 +02:00
2020-08-07 02:28:22 +02:00
# Version of Radicale
ARG VERSION=2.1.x
2017-06-10 16:15:45 +02:00
# 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!)
2016-06-26 19:29:18 +02:00
EXPOSE 5232
2017-06-10 16:15:45 +02:00
# Run Radicale (Configure it here or provide a "config" file!)
CMD ["radicale", "--hosts", "0.0.0.0:5232"]
2020-08-07 02:28:22 +02:00
# 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,md5] @ https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz"
# Install dependencies for Radicale<2.1.9
RUN pip install passlib[bcrypt]
# Remove build dependencies
RUN apk del gcc musl-dev libffi-dev