Improve Dockerfile (#676)

* fixing DockerFile

* applying corrections

* fixating the dest file
This commit is contained in:
François Schmidts 2017-08-02 17:26:33 +02:00 committed by Unrud
parent 434178ab07
commit ae54e8556c

View File

@ -1,7 +1,7 @@
FROM alpine:latest FROM alpine:latest
# Version of Radicale (e.g. 2.0.0) # Version of Radicale (e.g. 2.0.0)
ENV VERSION master ARG VERSION=master
# Install dependencies # Install dependencies
RUN apk add --no-cache \ RUN apk add --no-cache \
@ -17,8 +17,8 @@ RUN apk add --no-cache \
build-base \ build-base \
libffi-dev libffi-dev
# Install Radicale # Install Radicale
ADD https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz radicale.tar.gz RUN wget --quiet https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz --output-document=radicale.tar.gz && \
RUN tar xzf radicale.tar.gz && \ tar xzf radicale.tar.gz && \
python3 -m pip install ./Radicale-${VERSION} && \ python3 -m pip install ./Radicale-${VERSION} && \
rm -r radicale.tar.gz Radicale-${VERSION} rm -r radicale.tar.gz Radicale-${VERSION}
# Persistent storage for data (Mount it somewhere on the host!) # Persistent storage for data (Mount it somewhere on the host!)