Refactor radicale setup

This commit is contained in:
Sonny Bakker 2025-04-06 09:34:33 +02:00
parent a5e6468cb4
commit 634bd0433f
19 changed files with 214 additions and 564 deletions

View file

@ -0,0 +1,20 @@
# {{ ansible_managed }}
ARG PYTHON_VERSION=3.13
FROM python:$PYTHON_VERSION
ARG RADICALE_VERSION
RUN apt update && apt install apache2-utils
RUN pip install Radicale==$RADICALE_VERSION
WORKDIR /app
COPY ./config ./radicale_users /app/
VOLUME ["/root/.cache/pip", "/var/cache/apt/archives"]
EXPOSE {{ radicale_app_port }}
CMD ["/usr/local/bin/radicale", "--config=/app/config"]