Skip to content

Commit

Permalink
Merge pull request #177 from ArangoGutierrez/helm_charts
Browse files Browse the repository at this point in the history
Dockerfile: define numeric user to run unprivileged
  • Loading branch information
k8s-ci-robot authored Jan 31, 2023
2 parents 180644f + 7d7235a commit fa6e4e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ testbin/*
*.swo
*~
.vscode/*
node-feature-discovery-operator
./node-feature-discovery-operator
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 fa6e4e3

Please sign in to comment.