fix: dockerfile user from UID to username
This commit is contained in:
committed by
Julien Sanchez
parent
2dd7328859
commit
f57e738156
@@ -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=1000 --from=builder /app/venv /app
|
||||
COPY --chown=radicale --from=builder /app/venv /app
|
||||
|
||||
# Persistent storage for data
|
||||
VOLUME /var/lib/radicale
|
||||
@@ -30,4 +30,4 @@ EXPOSE 5232
|
||||
ENTRYPOINT [ "/app/bin/python", "/app/bin/radicale"]
|
||||
CMD ["--hosts", "0.0.0.0:5232"]
|
||||
|
||||
USER 1000
|
||||
USER 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=1000 --from=builder /app/venv /app
|
||||
COPY --chown=radicale --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 1000
|
||||
USER radicale
|
||||
Reference in New Issue
Block a user