Dockerfile 561 B

1234567891011121314151617
  1. # This file is intended to be used apart from the containing source code tree.
  2. FROM python:3-alpine
  3. # Version of Radicale (e.g. v3)
  4. ARG VERSION=master
  5. # Persistent storage for data
  6. VOLUME /var/lib/radicale
  7. # TCP port of Radicale
  8. EXPOSE 5232
  9. # Run Radicale
  10. CMD ["radicale", "--hosts", "0.0.0.0:5232"]
  11. RUN apk add --no-cache ca-certificates openssl \
  12. && apk add --no-cache --virtual .build-deps gcc libffi-dev musl-dev \
  13. && pip install --no-cache-dir "Radicale[bcrypt] @ https://github.com/Kozea/Radicale/archive/${VERSION}.tar.gz" \
  14. && apk del .build-deps