forked from Kozea/Radicale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 822 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
# Radicale Dockerfile
#
# VERSION 0.3.1
FROM alpine:latest
# Base packages
RUN apk update && \
apk upgrade && \
apk add python3 python3-dev build-base libffi-dev ca-certificates
# Python installation
# pip
ADD https://bootstrap.pypa.io/get-pip.py /tmp/install/
RUN python3 /tmp/install/* && \
pip install passlib bcrypt setuptools
# Radicale installation
RUN mkdir -p /data/config
COPY . /data/radicale
COPY config /data/config
RUN cd /data/radicale && python3 setup.py install
# User
RUN adduser -h /home/radicale -D radicale && \
mkdir -p /home/radicale/.config && \
ln -s /data/config /home/radicale/.config/radicale && \
chown -R radicale:radicale /data/config && \
chown -R radicale:radicale /home/radicale
USER radicale
WORKDIR /home/radicale
CMD ["radicale", "-D", "-C", "/data/config/config"]