Dockerfile 1015 B

123456789101112131415161718192021222324252627282930313233
  1. FROM alpine:latest
  2. # Version of Radicale (e.g. 2.0.0)
  3. ARG VERSION=master
  4. # Install dependencies
  5. RUN apk add --no-cache \
  6. python3 \
  7. python3-dev \
  8. build-base \
  9. libffi-dev \
  10. ca-certificates \
  11. openssl
  12. # Install Radicale
  13. RUN wget --quiet https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz --output-document=radicale.tar.gz && \
  14. tar xzf radicale.tar.gz && \
  15. pip3 install ./Radicale-${VERSION}[md5,bcrypt] && \
  16. rm -r radicale.tar.gz Radicale-${VERSION}
  17. # Install dependencies for Radicale<2.1.9
  18. RUN pip3 install passlib[bcrypt]
  19. # Remove build dependencies
  20. RUN apk del \
  21. python3-dev \
  22. build-base \
  23. libffi-dev
  24. # Persistent storage for data (Mount it somewhere on the host!)
  25. VOLUME /var/lib/radicale
  26. # Configuration data (Put the "config" file here!)
  27. VOLUME /etc/radicale
  28. # TCP port of Radicale (Publish it on a host interface!)
  29. EXPOSE 5232
  30. # Run Radicale (Configure it here or provide a "config" file!)
  31. CMD ["radicale", "--hosts", "0.0.0.0:5232"]