summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-12-31 21:50:12 +0200
committerPaul Buetow <paul@buetow.org>2023-12-31 21:50:12 +0200
commit889194103729edf60f0ef45f176b1a4a8aeeb2ed (patch)
tree7a8e535a5b08a9c4bf45d66fca2971aafda65056 /Dockerfile
initial docker image
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 14 insertions, 0 deletions
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"]