FROM python:3.9-alpine as builder 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 COPY --from=builder /root/.local /root/.local ENV PATH=/root/.local:$PATH WORKDIR /app COPY ./config /etc/radicale/config COPY ./entrypoint.sh . ENV USER_FILE=/data/users VOLUME [ "/data" ] CMD [ "/app/entrypoint.sh" ]