Skip to content

Commit

Permalink
Dockerfile: define numeric user to run unprivileged
Browse files Browse the repository at this point in the history
  • Loading branch information
ArangoGutierrez committed Jan 30, 2023
1 parent dd40312 commit 7d7235a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ FROM ${BASE_IMAGE_FULL} as full
COPY --from=builder /workspace/node-feature-discovery-operator /
COPY --from=builder /workspace/build/assets /opt/nfd

RUN useradd nfd-operator
USER nfd-operator
# Run as unprivileged user
USER 65534:65534

ENTRYPOINT ["/node-feature-discovery-operator"]
LABEL io.k8s.display-name="node-feature-discovery-operator"
Expand Down

0 comments on commit 7d7235a

Please sign in to comment.