Skip to content

[CLI-1431] Add non-root user to Dockerfile so users don't have to run as root with container#1388

Merged
David Hyde (DABH) merged 1 commit intomainfrom
CLI-1431
Aug 13, 2022
Merged

[CLI-1431] Add non-root user to Dockerfile so users don't have to run as root with container#1388
David Hyde (DABH) merged 1 commit intomainfrom
CLI-1431

Conversation

@DABH
Copy link
Contributor

Also fixed a small gotcha that would have broken the release process on M1 Macs (forcing the Dockerfile to use alpine/amd64 instead of allowing alpine/arm64).

@DABH David Hyde (DABH) requested a review from a team as a code owner August 7, 2022 01:46
@DABH David Hyde (DABH) changed the title Add non-root user to Dockerfile so users don't have to run as root with container [CLI-1431] Add non-root user to Dockerfile so users don't have to run as root with container Aug 7, 2022
RUN adduser \
--disabled-password \
--gecos "" \
--ingroup "$USER" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would we be able to drop the double quotes on this line and lines 17 & 18, since the environment variables do not have any spaces or patterns? If so, we could match the style on line 8.

@DABH David Hyde (DABH) merged commit ec9a610 into main Aug 13, 2022
@DABH David Hyde (DABH) deleted the CLI-1431 branch August 13, 2022 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants