-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (27 loc) · 960 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM docker.io/alpine:3.21.0
# git & openssh-client for storage hooks
# py3-passlib & py3-bcrypt required for htpasswd_encryption=bcrypt
# https://github.com/pyca/bcrypt/
# > from bcrypt import _bcrypt
# > ModuleNotFoundError: No module named '_cffi_backend'
# https://github.com/Kozea/Radicale/blob/master/CHANGELOG.md
# https://git.alpinelinux.org/aports/log/community/radicale?h=3.21-stable
ARG RADICALE_PACKAGE_VERSION=3.3.0-r
RUN apk add --no-cache \
git \
openssh-client \
py3-bcrypt \
py3-cffi \
py3-passlib \
radicale=$RADICALE_PACKAGE_VERSION
COPY ssh_config /etc/ssh/ssh_config
ENV CONFIG_PATH=/etc/radicale/config
ENV COLLECTIONS_PATH=/var/lib/radicale/collections
COPY radicale.sh /
RUN mkdir "$COLLECTIONS_PATH" ~radicale/.ssh \
&& chown radicale "$COLLECTIONS_PATH" ~radicale/.ssh \
&& chmod a+rx /radicale.sh
VOLUME $COLLECTIONS_PATH
USER radicale
EXPOSE 5232/tcp
CMD ["/radicale.sh"]