|
@@ -20,7 +20,7 @@ WORKDIR /app
|
|
|
RUN adduser radicale --home /var/lib/radicale --system --uid 1000 --disabled-password \
|
|
RUN adduser radicale --home /var/lib/radicale --system --uid 1000 --disabled-password \
|
|
|
&& apk add --no-cache ca-certificates openssl
|
|
&& apk add --no-cache ca-certificates openssl
|
|
|
|
|
|
|
|
-COPY --chown=1000 --from=builder /app/venv /app
|
|
|
|
|
|
|
+COPY --chown=radicale --from=builder /app/venv /app
|
|
|
|
|
|
|
|
# Persistent storage for data
|
|
# Persistent storage for data
|
|
|
VOLUME /var/lib/radicale
|
|
VOLUME /var/lib/radicale
|
|
@@ -30,4 +30,4 @@ EXPOSE 5232
|
|
|
ENTRYPOINT [ "/app/bin/python", "/app/bin/radicale"]
|
|
ENTRYPOINT [ "/app/bin/python", "/app/bin/radicale"]
|
|
|
CMD ["--hosts", "0.0.0.0:5232"]
|
|
CMD ["--hosts", "0.0.0.0:5232"]
|
|
|
|
|
|
|
|
-USER 1000
|
|
|
|
|
|
|
+USER radicale
|