2022-02-11 13:29:17 +01:00
|
|
|
FROM oraclelinux:8
|
2022-02-28 20:19:10 +01:00
|
|
|
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
|
2022-02-11 13:29:17 +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
|
|
|
|
|
|
|
|
# Install dependencies
|
2022-02-28 20:19:10 +01:00
|
|
|
RUN dnf install -y python3 python3-pip && dnf clean all
|
2022-02-11 13:29:17 +01:00
|
|
|
# Create radicale user
|
|
|
|
RUN useradd radicale -md /opt/radicale
|
|
|
|
WORKDIR /opt/radicale
|
|
|
|
USER radicale
|
|
|
|
|
|
|
|
# Install Radicale
|
|
|
|
# Was v2.1.9 because of regressions on v2.1.10+ on SSL handling, so no more included SSL ATM
|
|
|
|
# No v3 ATM : huge refactoring, whole plugin obsolete...
|
|
|
|
ENV VERSION 2.1.12
|
2022-02-28 20:19:10 +01:00
|
|
|
RUN pip3 install --user --no-cache-dir radicale==${VERSION}
|
2022-02-11 13:29:17 +01: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
|
2022-02-28 20:19:10 +01:00
|
|
|
CMD [".local/bin/radicale", "--hosts", "0.0.0.0:5232"]
|