diff --git a/Dockerfile b/Dockerfile index a7c8f17..77cc394 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,17 +10,19 @@ RUN apk add --no-cache \ build-base \ libffi-dev \ ca-certificates \ - openssl && \ - python3 -m pip install passlib bcrypt && \ - apk del \ - python3-dev \ - build-base \ - libffi-dev + openssl # Install Radicale RUN wget --quiet https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz --output-document=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} +# 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!) VOLUME /var/lib/radicale # Configuration data (Put the "config" file here!)