Skip to content

Commit

Permalink
dockerfile: remove ubuntu user
Browse files Browse the repository at this point in the history
Partly adresses issue #3336 and #3331.
Thanks @rmcmilli for the hint.
  • Loading branch information
robertcheramy committed Feb 21, 2025
1 parent 0cdc6c8 commit b0d6e9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

### Changed
- docker image: updated github CI to explicitly build tag versions (@robertcheramy)
- docker image: remove ubuntu user introduced in noble (@robertcheramy)

### Fixed

Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,21 @@ RUN git fetch --unshallow || true
# Remove any older gems of oxidized if they exist
RUN rm pkg/* || true

# Ensure rugged is built with ssh support
# Build oxidized
RUN rake build


###################
# Stage2: build an oxidized container from phusion/baseimage-docker and install x25519 from stage1
# Stage2: build an oxidized container from phusion/baseimage-docker and install
# gems from stage1
FROM docker.io/phusion/baseimage:noble-1.0.0

ENV DEBIAN_FRONTEND=noninteractive

##### Place "static" commands at the beginning to optimize image size and build speed
# remove default ubuntu user
RUN userdel -r ubuntu

# add non-privileged user
ARG UID=30000
ARG GID=$UID
Expand Down

0 comments on commit b0d6e9c

Please sign in to comment.