From 889194103729edf60f0ef45f176b1a4a8aeeb2ed Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 31 Dec 2023 21:50:12 +0200 Subject: initial docker image --- Dockerfile | 14 ++++++++++++++ README.md | 3 +++ config | 11 +++++++++++ 3 files changed, 28 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 config diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e5e5926 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine:latest +RUN adduser -D radicale + +RUN apk add --no-cache python3 py3-pip +RUN python3 -m pip install --upgrade pip +RUN python3 -m pip install --upgrade radicale + +RUN mkdir /config /collections /etc/radicale +RUN chown radicale /config /collections +COPY ./config /etc/radicale/config + +EXPOSE 5232 +USER radicale +CMD ["python3", "-m", "radicale", "--debug"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..138e6b0 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Radicale Docker image + +For the Radicale server https://radicale.org diff --git a/config b/config new file mode 100644 index 0000000..3d1cfdd --- /dev/null +++ b/config @@ -0,0 +1,11 @@ +[server] +# Bind all addresses +hosts = 0.0.0.0:5232, [::]:5232 + +[auth] +type = htpasswd +htpasswd_filename = /config/htpasswd +htpasswd_encryption = md5 + +[storage] +filesystem_folder = /collections -- cgit v1.2.3