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
|
2021-05-05 10:27:56 +00:00
|
|
|
RUN pip install --user radicale[bcrypt]~=3.0
|
2021-03-16 23:49:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
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" ]
|
|
|
|
|
2021-05-08 08:27:10 +00:00
|
|
|
EXPOSE 5232
|
|
|
|
|
2021-03-16 23:13:50 +00:00
|
|
|
CMD [ "/app/entrypoint.sh" ]
|