Skip to content

Commit

Permalink
remove default ubuntu user in 24.04 while generating container.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinit-chauhan committed Oct 2, 2024
1 parent 0a97593 commit 037692e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev-tools/packaging/templates/docker/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ RUN for iter in {1..10}; do \
{{- end }}

{{- if contains .from "ubuntu" }}

RUN touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu

RUN for iter in {1..10}; do \
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes ca-certificates curl gawk libcap2-bin xz-utils && \
Expand Down

0 comments on commit 037692e

Please sign in to comment.