Docker: Use extras for dependencies
Explicit installation of passlib and bcrypt is still included for older versions.
This commit is contained in:
parent
16efa357a2
commit
e6e3db6e05
16
Dockerfile
16
Dockerfile
@ -10,17 +10,19 @@ RUN apk add --no-cache \
|
|||||||
build-base \
|
build-base \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
openssl && \
|
openssl
|
||||||
python3 -m pip install passlib bcrypt && \
|
|
||||||
apk del \
|
|
||||||
python3-dev \
|
|
||||||
build-base \
|
|
||||||
libffi-dev
|
|
||||||
# Install Radicale
|
# Install Radicale
|
||||||
RUN wget --quiet https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz --output-document=radicale.tar.gz && \
|
RUN wget --quiet https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz --output-document=radicale.tar.gz && \
|
||||||
tar xzf radicale.tar.gz && \
|
tar xzf radicale.tar.gz && \
|
||||||
python3 -m pip install ./Radicale-${VERSION} && \
|
pip3 install ./Radicale-${VERSION}[md5,bcrypt] && \
|
||||||
rm -r radicale.tar.gz Radicale-${VERSION}
|
rm -r radicale.tar.gz Radicale-${VERSION}
|
||||||
|
# Install dependencies for Radicale<2.1.9
|
||||||
|
RUN pip3 install passlib[bcrypt]
|
||||||
|
# Remove build dependencies
|
||||||
|
RUN apk del \
|
||||||
|
python3-dev \
|
||||||
|
build-base \
|
||||||
|
libffi-dev
|
||||||
# Persistent storage for data (Mount it somewhere on the host!)
|
# Persistent storage for data (Mount it somewhere on the host!)
|
||||||
VOLUME /var/lib/radicale
|
VOLUME /var/lib/radicale
|
||||||
# Configuration data (Put the "config" file here!)
|
# Configuration data (Put the "config" file here!)
|
||||||
|
Loading…
Reference in New Issue
Block a user