FROM docker.io/debian:bookworm-slim ARG VERSION=3.1.8 RUN apt-get update -y && apt-get install -y --no-install-recommends \ python3 python3-pip python3-venv gettext RUN python3 -m venv /venv && \ /venv/bin/pip install radicale==$VERSION https://github.com/Unrud/RadicaleIMAP/archive/master.tar.gz RUN addgroup --system --gid 15232 radicale RUN adduser --system --uid 15232 --ingroup radicale --home /var/lib/radicale radicale COPY --chown=radicale:radicale container/config /etc/radicale COPY container/run-radicale /run-radicale USER radicale EXPOSE 5232 ENTRYPOINT ["/run-radicale"]