2018-05-03 16:42:54 +02:00
|
|
|
FROM centos:7
|
|
|
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
RUN yum install -y centos-release-scl
|
|
|
|
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms
|
2021-03-27 16:19:06 +01:00
|
|
|
RUN yum install -y rh-python38
|
2018-05-03 16:42:54 +02:00
|
|
|
# Create radicale user
|
|
|
|
RUN useradd radicale -md /opt/radicale
|
|
|
|
WORKDIR /opt/radicale
|
|
|
|
USER radicale
|
|
|
|
|
|
|
|
# Install Radicale
|
2020-07-04 15:53:48 +02:00
|
|
|
# Was v2.1.9 because of regressions on v2.1.10+ on SSL handling, so no more included SSL ATM
|
|
|
|
# No v3 ATM : huge refacotring, whole plugin obsolete...
|
|
|
|
ENV VERSION 2.1.12
|
2021-03-27 16:19:06 +01:00
|
|
|
RUN scl enable rh-python38 "pip install --user radicale==${VERSION}"
|
2018-05-03 16:42:54 +02:00
|
|
|
COPY config .config/radicale/config/
|
|
|
|
RUN mkdir /opt/radicale/storage
|
|
|
|
|
|
|
|
# Persistent storage for data and configuration
|
|
|
|
VOLUME /opt/radicale/storage
|
|
|
|
|
|
|
|
# TCP port of Radicale
|
|
|
|
EXPOSE 5232
|
|
|
|
|
|
|
|
# Run Radicale
|
2021-03-27 16:19:06 +01:00
|
|
|
CMD scl enable rh-python38 ".local/bin/radicale --hosts 0.0.0.0:5232"
|