docker_images/radicale/Dockerfile

33 lines
942 B
Docker
Raw Normal View History

2017-08-03 08:14:44 +02:00
FROM debian:jessie
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
2017-08-03 08:14:44 +02:00
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
2017-08-03 08:14:44 +02:00
# Install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends python3 python3-pip && \
apt-get clean && rm -rf /var/lib/apt/lists/*
2017-08-03 08:14:44 +02:00
# Create radicale user
RUN useradd radicale -md /opt/radicale
WORKDIR /opt/radicale
USER radicale
# Install Radicale
# v2.1.9 because of regressions on v2.1.10+ on SSL handling
ENV VERSION 2.1.9
RUN pip3 install --user --upgrade radicale==${VERSION}
2018-05-04 08:53:28 +02:00
COPY config /opt/radicale/radicale.conf
2017-08-03 08:21:22 +02:00
RUN mkdir /opt/radicale/storage
2017-08-03 08:14:44 +02:00
# Persistent storage for data and configuration
2017-08-03 08:21:22 +02:00
VOLUME /opt/radicale/storage
2017-08-03 08:14:44 +02:00
# TCP port of Radicale
EXPOSE 5232
# Run Radicale
CMD [".local/bin/radicale", "--config", "/opt/radicale/radicale.conf"]