Dockerfile 807 B

1234567891011121314151617181920212223242526
  1. FROM alpine:3.10
  2. # storage hooks
  3. RUN apk add --no-cache git
  4. # py3-passlib & py3-bcrypt required for htpasswd_encryption=bcrypt
  5. # https://github.com/pyca/bcrypt/
  6. # > from bcrypt import _bcrypt
  7. # > ModuleNotFoundError: No module named '_cffi_backend'
  8. RUN apk add --no-cache py3-bcrypt py3-cffi
  9. ARG REPOSITORY=http://dl-cdn.alpinelinux.org/alpine/edge/testing
  10. RUN apk add --repository=$REPOSITORY --no-cache radicale py3-passlib
  11. ENV COLLECTIONS_PATH=/var/lib/radicale/collections
  12. RUN mkdir "$COLLECTIONS_PATH" && chown radicale "$COLLECTIONS_PATH"
  13. VOLUME $COLLECTIONS_PATH
  14. ENV CONFIG_PATH=/etc/radicale/config
  15. USER radicale
  16. EXPOSE 5232/tcp
  17. CMD radicale --server-hosts=0.0.0.0:5232 \
  18. --config="$CONFIG_PATH" \
  19. --storage-filesystem-folder="$COLLECTIONS_PATH" \
  20. --debug --logging-mask-passwords