Dockerfile 928 B

12345678910111213141516171819202122232425262728293031
  1. FROM alpine:latest
  2. # Version of Radicale (e.g. 3.0.x)
  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} && \
  16. rm -r radicale.tar.gz Radicale-${VERSION}
  17. # Remove build dependencies
  18. RUN apk del \
  19. python3-dev \
  20. build-base \
  21. libffi-dev
  22. # Persistent storage for data (Mount it somewhere on the host!)
  23. VOLUME /var/lib/radicale
  24. # Configuration data (Put the "config" file here!)
  25. VOLUME /etc/radicale
  26. # TCP port of Radicale (Publish it on a host interface!)
  27. EXPOSE 5232
  28. # Run Radicale (Configure it here or provide a "config" file!)
  29. CMD ["radicale", "--hosts", "0.0.0.0:5232"]