-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.3.1
More file actions
33 lines (23 loc) · 1018 Bytes
/
Dockerfile.3.1
File metadata and controls
33 lines (23 loc) · 1018 Bytes
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
ARG STICKY_VERSION=3.1.4
FROM ghcr.io/neomediatech/ubuntu-base:20.04
ENV SERVICE=radicale
LABEL org.opencontainers.image.source=https://github.com/Neomediatech/${SERVICE}
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
python3 python3-pip && \
pip3 install --upgrade pip && \
pip3 install radicale~=3.0 && \
pip3 install --upgrade https://github.com/Unrud/RadicaleIMAP/archive/master.tar.gz && \
pip3 install --upgrade https://github.com/Unrud/RadicaleInfCloud/archive/master.tar.gz
# from Radicale developer repo
COPY radicale.conf /radicale.conf
COPY entrypoint.sh /entrypoint.sh
EXPOSE 5232/tcp
VOLUME ["/data"]
#CMD radicale -S -C /data/radicale.conf
HEALTHCHECK --interval=60s --timeout=30s --start-period=10s --retries=5 CMD curl -I -s -L http://localhost:5232/.web/ || exit 1
RUN radicale --version >> /version ; \
chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/tini","--","radicale","-S","-C","/data/radicale.conf"]