Skip to content

Commit

Permalink
fix(docker): use the existing nonroot user
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 committed Oct 30, 2024
1 parent 4b3e0e4 commit 48a3e9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@ RUN if [ "$(uname -m)" = "x86_64" ]; then \

FROM mcr.microsoft.com/azure-cli:${BASE_TAG}

RUN useradd -r licenseware

COPY --from=bins /usr/local/bin/kubelogin /usr/local/bin/kubelogin
COPY --from=bins /usr/local/bin/dumb-init /usr/local/bin/dumb-init
COPY --from=bins /usr/local/bin/kubectl /usr/local/bin/kubectl

USER licenseware:licenseware
USER nonroot:nonroot

ENTRYPOINT [ "dumb-init", "--" ]
CMD [ "az", "--help" ]

0 comments on commit 48a3e9b

Please sign in to comment.