2017-08-03 08:14:44 +02:00
|
|
|
FROM debian:jessie
|
2018-05-03 16:42:24 +02:00
|
|
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
2017-08-03 08:14:44 +02:00
|
|
|
|
2017-12-09 08:40:53 +01: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
|
2018-05-03 16:42:24 +02:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-pip
|
2017-08-03 08:14:44 +02:00
|
|
|
|
|
|
|
# Packages cleanup
|
2018-05-04 08:53:28 +02:00
|
|
|
RUN apt-get purge -y --auto-remove && apt-get clean
|
2017-08-03 08:14:44 +02:00
|
|
|
|
|
|
|
# Create radicale user
|
|
|
|
RUN useradd radicale -md /opt/radicale
|
|
|
|
WORKDIR /opt/radicale
|
|
|
|
USER radicale
|
|
|
|
|
|
|
|
# Install Radicale
|
2020-05-17 07:21:43 +02:00
|
|
|
ENV VERSION 2.1.11
|
2017-08-03 08:14:44 +02:00
|
|
|
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
|
2018-05-04 08:53:28 +02:00
|
|
|
CMD .local/bin/radicale --config /opt/radicale/radicale.conf
|