Dockerfile 514 Bytes
Newer Older
1
ARG DISTRO=alpine:3.14.5
2
FROM $DISTRO
3
ARG VERSION
kaiyou's avatar
kaiyou committed
4

DjVinnii's avatar
DjVinnii committed
5
6
ENV TZ Etc/UTC

7
8
LABEL version=$VERSION

9
10
# python3 shared with most images
RUN apk add --no-cache \
DjVinnii's avatar
DjVinnii committed
11
    python3 py3-pip bash tzdata \
12
13
14
15
  && pip3 install --upgrade pip

# Image specific layers under this line
RUN apk add --no-cache curl \
16
 && pip3 install radicale~=3.0
kaiyou's avatar
kaiyou committed
17
18
19
20


COPY radicale.conf /radicale.conf

21
EXPOSE 5232/tcp
22
VOLUME ["/data"]
23

24
CMD radicale -S -C /radicale.conf
25
26

HEALTHCHECK CMD curl -f -L http://localhost:5232/ || exit 1
Florent Daigniere's avatar
Florent Daigniere committed
27
RUN echo $VERSION >> /version