Skip to content

Commit

Permalink
Merge pull request #17660 from andreineculau/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored Jul 11, 2024
2 parents 4bcdd81 + bc8c7a2 commit b831601
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ ARG version=22.04
FROM ubuntu:"${version}"
ARG DEBIAN_FRONTEND=noninteractive

# Set the user ID to the default value of 1001 since different ubuntu
# versions yield to different user IDs with `useradd`
ENV USER_ID=1001
# Deterministic UID (first user). Helps with docker build cache
ENV USER_ID=1000
# Delete the default ubuntu user & group UID=1000 GID=1000 in Ubuntu 23.04+
# that conflicts with the linuxbrew user
RUN touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu; true

# We don't want to manually pin versions, happy to use whatever
# Ubuntu thinks is best.
Expand Down

0 comments on commit b831601

Please sign in to comment.