Update Dockerfile

This commit is contained in:
Unrud 2017-06-10 16:15:45 +02:00 committed by GitHub
parent 6b8de92c57
commit 714483bf0e

View File

@ -1,28 +1,31 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Radicale project "radicale@librelist.com" # Version of Radicale (e.g. 2.0.0)
ENV VERSION master
ENV VERSION 1.1.1 # Install dependencies
ENV TARBALL https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz RUN apk add --no-cache \
RUN apk --update --update-cache upgrade \
&& apk add \
python3 \ python3 \
python3-dev \ python3-dev \
build-base \ build-base \
libffi-dev \ libffi-dev \
ca-certificates \ ca-certificates \
openssl \ openssl && \
&& python3 -m ensurepip \ python3 -m pip install passlib bcrypt && \
&& pip3 install --upgrade pip \ apk del \
&& pip3 install passlib bcrypt python3-dev \
build-base \
RUN wget ${TARBALL} \ libffi-dev
&& tar xzf ${VERSION}.tar.gz \ # Install Radicale
&& cd Radicale-${VERSION} && python3 setup.py install \ ADD https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz radicale.tar.gz
&& mkdir -p /etc/radicale \ RUN tar xzf radicale.tar.gz && \
&& cp config /etc/radicale/config python3 -m pip install ./Radicale-${VERSION} && \
rm -r radicale.tar.gz Radicale-${VERSION}
# Persistent storage for data (Mount it somewhere on the host!)
VOLUME /var/lib/radicale
# Configuration data (Put the "config" file here!)
VOLUME /etc/radicale
# TCP port of Radicale (Publish it on a host interface!)
EXPOSE 5232 EXPOSE 5232
# Run Radicale (Configure it here or provide a "config" file!)
CMD ["radicale", "-f", "-C", "/etc/radicale/config"] CMD ["radicale", "--hosts", "0.0.0.0:5232"]