coreos-home-server/service/radicale/Containerfile

21 lines
640 B
Plaintext
Raw Normal View History

FROM docker.io/debian:bullseye-slim
2022-01-27 23:32:58 +00:00
ARG VERSION=3.1.3
RUN apt-get update -y && apt-get install -y --no-install-recommends \
python3 python3-pip python3-setuptools gettext
RUN python3 -m pip install --upgrade pip && \
python3 -m 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 container/config /etc/radicale
COPY container/run-radicale /run-radicale
RUN chown -R radicale:radicale /etc/radicale
USER radicale
EXPOSE 5232
ENTRYPOINT ["/run-radicale"]