mirror of
https://github.com/traefik/traefik.git
synced 2026-02-03 20:39:51 -05:00
fix: resolve medium vulnerability dockerfile.security.missing-user-entrypoint.missing-user-entrypoint
Automatically generated security fix
This commit is contained in:
parent
2ad42cd0ec
commit
62a8bdecd5
1 changed files with 4 additions and 0 deletions
|
|
@ -6,7 +6,11 @@ RUN apk add --no-cache --no-progress ca-certificates tzdata
|
|||
ARG TARGETPLATFORM
|
||||
COPY ./dist/$TARGETPLATFORM/traefik /
|
||||
|
||||
RUN addgroup -g 65532 -S traefik && \
|
||||
adduser -u 65532 -D -S -G traefik traefik
|
||||
|
||||
EXPOSE 80
|
||||
VOLUME ["/tmp"]
|
||||
|
||||
USER traefik
|
||||
ENTRYPOINT ["/traefik"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue