docker-radicale/Dockerfile

30 lines
478 B
Docker
Raw Permalink Normal View History

FROM python:3-alpine as builder
2021-03-16 23:13:50 +00:00
2021-03-16 23:49:27 +00:00
WORKDIR /app
2022-06-27 08:03:40 +00:00
ARG RADICALE_VERSION=3.1.7
2021-03-16 23:49:27 +00:00
RUN apk add --no-cache alpine-sdk libffi-dev
RUN pip install --user radicale[bcrypt]==$RADICALE_VERSION
2021-03-16 23:49:27 +00:00
FROM python:3-alpine
2021-03-16 23:49:27 +00:00
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" ]
2021-05-08 08:27:10 +00:00
EXPOSE 5232
CMD [ "/app/entrypoint.sh" ]