2021-01-02 16:51:25 +01:00
|
|
|
# This file is intended to be used apart from the containing source code tree.
|
|
|
|
|
2020-08-07 02:28:22 +02:00
|
|
|
FROM python:3-alpine
|
2014-10-20 00:10:19 +02:00
|
|
|
|
2021-12-20 22:33:38 +01:00
|
|
|
# Version of Radicale (e.g. v3)
|
2017-08-02 17:26:33 +02:00
|
|
|
ARG VERSION=master
|
2021-01-02 16:51:25 +01:00
|
|
|
# Persistent storage for data
|
2017-06-10 16:15:45 +02:00
|
|
|
VOLUME /var/lib/radicale
|
2021-01-02 16:51:25 +01:00
|
|
|
# TCP port of Radicale
|
2016-06-26 19:29:18 +02:00
|
|
|
EXPOSE 5232
|
2021-01-02 16:51:25 +01:00
|
|
|
# Run Radicale
|
2017-06-10 16:15:45 +02:00
|
|
|
CMD ["radicale", "--hosts", "0.0.0.0:5232"]
|
2020-08-07 02:28:22 +02:00
|
|
|
|
2021-01-02 16:33:05 +01:00
|
|
|
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
|