mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-29 16:55:32 +00:00
Merge pull request #1420 from gardenrobot/fix-dockerfile-group
Set nogroup in Dockerfile. Fixes #1419
This commit is contained in:
commit
5b99b5a88d
2 changed files with 7 additions and 5 deletions
|
@ -17,10 +17,11 @@ FROM python:3-alpine
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
RUN adduser radicale --home /var/lib/radicale --system --uid 1000 --disabled-password \
|
||||
RUN addgroup -g 1000 radicale \
|
||||
&& adduser radicale --home /var/lib/radicale --system --uid 1000 --disabled-password -G radicale \
|
||||
&& apk add --no-cache ca-certificates openssl
|
||||
|
||||
COPY --chown=radicale --from=builder /app/venv /app
|
||||
COPY --chown=radicale:radicale --from=builder /app/venv /app
|
||||
|
||||
# Persistent storage for data
|
||||
VOLUME /var/lib/radicale
|
||||
|
|
|
@ -15,10 +15,11 @@ FROM python:3-alpine
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
RUN adduser radicale --home /var/lib/radicale --system --uid 1000 --disabled-password \
|
||||
RUN addgroup -g 1000 radicale \
|
||||
&& adduser radicale --home /var/lib/radicale --system --uid 1000 --disabled-password -G radicale \
|
||||
&& apk add --no-cache ca-certificates openssl
|
||||
|
||||
COPY --chown=radicale --from=builder /app/venv /app
|
||||
COPY --chown=radicale:radicale --from=builder /app/venv /app
|
||||
|
||||
# Persistent storage for data
|
||||
VOLUME /var/lib/radicale
|
||||
|
@ -28,4 +29,4 @@ EXPOSE 5232
|
|||
ENTRYPOINT [ "/app/bin/python", "/app/bin/radicale"]
|
||||
CMD ["--hosts", "0.0.0.0:5232"]
|
||||
|
||||
USER radicale
|
||||
USER radicale
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue