2016-06-24 17:38:43 +02:00
|
|
|
FROM alpine:latest
|
2014-10-20 00:10:19 +02:00
|
|
|
|
2016-06-24 17:40:43 +02:00
|
|
|
MAINTAINER Radicale project "radicale@librelist.com"
|
|
|
|
|
2016-06-26 17:01:44 +02:00
|
|
|
ENV VERSION 1.1.1
|
|
|
|
ENV TARBALL https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz
|
|
|
|
|
2016-06-26 15:19:07 +02:00
|
|
|
RUN apk --update --update-cache upgrade \
|
2016-06-24 17:38:43 +02:00
|
|
|
&& apk add \
|
|
|
|
python3 \
|
|
|
|
python3-dev \
|
|
|
|
build-base \
|
|
|
|
libffi-dev \
|
2016-06-26 15:21:48 +02:00
|
|
|
ca-certificates \
|
|
|
|
&& python3 -m ensurepip \
|
2016-06-26 18:12:07 +02:00
|
|
|
&& pip3 install --upgrade pip \
|
|
|
|
&& pip3 install passlib bcrypt
|
2014-10-20 00:10:19 +02:00
|
|
|
|
2016-06-26 17:01:44 +02:00
|
|
|
RUN wget ${TARBALL} \
|
|
|
|
&& tar xzf ${VERSION}.tar.gz \
|
2016-06-26 18:12:36 +02:00
|
|
|
&& cd Radicale-${VERSION} && python3 setup.py install \
|
|
|
|
&& mkdir -p /etc/radicale \
|
|
|
|
&& cp config /etc/radicale/config
|
2016-06-24 17:38:43 +02:00
|
|
|
|
2016-06-26 18:12:36 +02:00
|
|
|
CMD ["radicale", "-D", "-C", "/etc/radicale/config"]
|