Skip to content

Commit 008db65

Browse files
committed
chore: delete default in base image
1 parent 83d29ea commit 008db65

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ RUN make build-plugins
1717
# Second stage: minimal runtime image
1818
FROM ubuntu:24.04
1919

20+
## Remove ubuntu user added in 24.04 by default
21+
RUN touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu
22+
2023
RUN apt-get update && apt-get install -y \
2124
ca-certificates \
2225
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)