forked from tomsquest/docker-radicale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (30 loc) · 977 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
32
33
34
35
FROM alpine:3.7
LABEL maintainer="[email protected]"
ARG VERSION=2.1.9
ARG UID=2999
ARG GID=2999
RUN apk add --no-cache --virtual=build-dependencies \
gcc \
libffi-dev \
musl-dev \
python3-dev \
&& apk add --no-cache \
curl \
git \
python3 \
shadow \
su-exec \
&& python3 -m pip install radicale==$VERSION passlib[bcrypt] \
&& python3 -m pip install --upgrade git+https://github.com/Unrud/RadicaleInfCloud \
&& apk del --purge build-dependencies \
&& addgroup -g $GID radicale \
&& adduser -D -s /bin/false -H -u $UID -G radicale radicale \
&& mkdir -p /config /data \
&& chown -R radicale /config /data
COPY config /config
HEALTHCHECK --interval=30s --retries=3 CMD curl --fail http://localhost:5232 || exit 1
VOLUME /config /data
EXPOSE 5232
COPY docker-entrypoint.sh /usr/local/bin
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["radicale", "--config", "/config/config"]