2022-02-07 11:14:42 +00:00
|
|
|
FROM python:3-alpine as builder
|
2021-03-16 23:13:50 +00:00
|
|
|
|
2021-03-16 23:49:27 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
2024-08-09 12:53:24 +00:00
|
|
|
ARG RADICALE_VERSION=3.2.2
|
2022-02-07 11:14:42 +00:00
|
|
|
|
2021-03-16 23:49:27 +00:00
|
|
|
RUN apk add --no-cache alpine-sdk libffi-dev
|
2022-02-07 11:14:42 +00:00
|
|
|
RUN pip install --user radicale[bcrypt]==$RADICALE_VERSION
|
2021-03-16 23:49:27 +00:00
|
|
|
|
|
|
|
|
2022-02-07 11:14:42 +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
|
|
|
|
|
2022-02-07 11:14:42 +00:00
|
|
|
CMD [ "/app/entrypoint.sh" ]
|