Dockerfile 703 B

12345678910111213141516171819
  1. FROM python:3-alpine
  2. # Version of Radicale (e.g. 3.0.x)
  3. ARG VERSION=master
  4. # Persistent storage for data (Mount it somewhere on the host!)
  5. VOLUME /var/lib/radicale
  6. # Configuration data (Put the "config" file here!)
  7. VOLUME /etc/radicale
  8. # TCP port of Radicale (Publish it on a host interface!)
  9. EXPOSE 5232
  10. # Run Radicale (Configure it here or provide a "config" file!)
  11. CMD ["radicale", "--hosts", "0.0.0.0:5232"]
  12. # Install dependencies
  13. RUN apk add --no-cache gcc musl-dev libffi-dev ca-certificates openssl
  14. # Install Radicale
  15. RUN pip install --no-cache-dir "Radicale[bcrypt] @ https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz"
  16. # Remove build dependencies
  17. RUN apk del gcc musl-dev libffi-dev