mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
20 lines
604 B
Docker
20 lines
604 B
Docker
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 curl
|
|
|
|
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"]
|