set group in COPY
This commit is contained in:
committed by
Peter Bieringer
parent
8891f1ab89
commit
98bac38006
@@ -20,7 +20,7 @@ WORKDIR /app
|
||||
RUN adduser radicale --home /var/lib/radicale --system --uid 1000 --disabled-password \
|
||||
&& apk add --no-cache ca-certificates openssl
|
||||
|
||||
COPY --chown=radicale --from=builder /app/venv /app
|
||||
COPY --chown=radicale:nogroup --from=builder /app/venv /app
|
||||
|
||||
# Persistent storage for data
|
||||
VOLUME /var/lib/radicale
|
||||
|
||||
@@ -18,7 +18,7 @@ WORKDIR /app
|
||||
RUN adduser radicale --home /var/lib/radicale --system --uid 1000 --disabled-password \
|
||||
&& apk add --no-cache ca-certificates openssl
|
||||
|
||||
COPY --chown=radicale --from=builder /app/venv /app
|
||||
COPY --chown=radicale:nogroup --from=builder /app/venv /app
|
||||
|
||||
# Persistent storage for data
|
||||
VOLUME /var/lib/radicale
|
||||
@@ -28,4 +28,4 @@ EXPOSE 5232
|
||||
ENTRYPOINT [ "/app/bin/python", "/app/bin/radicale"]
|
||||
CMD ["--hosts", "0.0.0.0:5232"]
|
||||
|
||||
USER radicale
|
||||
USER radicale
|
||||
|
||||
Reference in New Issue
Block a user