2016-06-24 17:38:43 +02:00
|
|
|
FROM alpine:latest
|
2014-10-20 00:10:19 +02:00
|
|
|
|
2020-05-22 16:33:05 +02:00
|
|
|
# Version of Radicale (e.g. 3.0.x)
|
2017-08-02 17:26:33 +02:00
|
|
|
ARG VERSION=master
|
2016-06-24 17:38:43 +02:00
|
|
|
|
2017-06-10 16:15:45 +02:00
|
|
|
# Install dependencies
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
python3 \
|
2020-07-23 20:12:18 +02:00
|
|
|
py3-pip \
|
2017-06-10 16:15:45 +02:00
|
|
|
python3-dev \
|
|
|
|
build-base \
|
|
|
|
libffi-dev \
|
|
|
|
ca-certificates \
|
2018-04-20 22:53:43 +02:00
|
|
|
openssl
|
2017-06-10 16:15:45 +02:00
|
|
|
# Install Radicale
|
2017-08-02 17:26:33 +02:00
|
|
|
RUN wget --quiet https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz --output-document=radicale.tar.gz && \
|
|
|
|
tar xzf radicale.tar.gz && \
|
2020-07-23 20:12:34 +02:00
|
|
|
pip3 install ./Radicale-${VERSION}[bcrypt] && \
|
2017-06-10 16:15:45 +02:00
|
|
|
rm -r radicale.tar.gz Radicale-${VERSION}
|
2018-04-20 22:53:43 +02:00
|
|
|
# Remove build dependencies
|
|
|
|
RUN apk del \
|
|
|
|
python3-dev \
|
|
|
|
build-base \
|
|
|
|
libffi-dev
|
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"]
|