Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc Dockerfile improvements #267

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Misc Dockerfile improvements #267

merged 1 commit into from
Mar 19, 2024

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Mar 19, 2024

  • Combines a few RUN statements to reduce number of image layers.
  • Switches remaining ENV usages to the form that uses = for consistency and per recommendation here: https://docs.docker.com/reference/dockerfile/#env
  • Uses long form CLI arguments for useradd to make their purpose clearer.

Noticed whilst working on #265.

GUS-W-15213143.

* Combines a few `RUN` statements to reduce number of image layers.
* Switches remaining `ENV` usages to the form that uses `=`
  for consistency and per recommendation here:
  https://docs.docker.com/reference/dockerfile/#env
* Uses long form CLI arguments for `useradd` to make their
  purpose clearer.
@edmorley edmorley self-assigned this Mar 19, 2024
@edmorley edmorley marked this pull request as ready for review March 19, 2024 12:01
@edmorley edmorley requested a review from a team as a code owner March 19, 2024 12:01
@edmorley edmorley enabled auto-merge (squash) March 19, 2024 12:02
@edmorley edmorley merged commit b3c12a9 into main Mar 19, 2024
4 checks passed
@edmorley edmorley deleted the edmorley/dockerfile-cleanup branch March 19, 2024 19:31
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