Dockerfile 962 B

12345678910111213141516171819202122232425262728293031
  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. python3 -m pip install passlib bcrypt && \
  13. apk del \
  14. python3-dev \
  15. build-base \
  16. libffi-dev
  17. # Install Radicale
  18. RUN wget --quiet https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz --output-document=radicale.tar.gz && \
  19. tar xzf radicale.tar.gz && \
  20. python3 -m pip install ./Radicale-${VERSION} && \
  21. rm -r radicale.tar.gz Radicale-${VERSION}
  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"]