docker-radicale/Dockerfile

25 lines
422 B
Docker
Raw Normal View History

2021-03-16 23:49:27 +00:00
FROM python:3.9-alpine as builder
2021-03-16 23:13:50 +00:00
2021-03-16 23:49:27 +00:00
WORKDIR /app
RUN apk add --no-cache alpine-sdk libffi-dev
RUN pip install --user radicale[bcrypt]
FROM python:3.9-alpine
RUN apk add --no-cache apache2-utils
2021-03-16 23:13:50 +00:00
2021-03-16 23:49:27 +00:00
COPY --from=builder /root/.local /root/.local
ENV PATH=/root/.local:$PATH
2021-03-16 23:13:50 +00:00
WORKDIR /app
COPY ./config /etc/radicale/config
COPY ./entrypoint.sh .
ENV USER_FILE=/data/users
VOLUME [ "/data" ]
CMD [ "/app/entrypoint.sh" ]