Skip to content

Promote ubi8 Dockerfile #800

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Promote ubi8 Dockerfile #800

wants to merge 2 commits into from

Conversation

arielr-lt
Copy link
Collaborator

@arielr-lt arielr-lt commented May 2, 2025

We are promoting ubi8 dockerfile as the official one.
Resolves: 779

@arielr-lt arielr-lt changed the title Delete Dockerfile Promote ubi8 Dockerfile May 2, 2025
@arielr-lt arielr-lt marked this pull request as ready for review May 2, 2025 23:09

ARG ENCRYPTED_PRIVATE_KEY_SECRET

ARG PLAT=x86_64
ARG RUBY_VERSION=3.2.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.3.5?


RUN gem install bundler && bundle config set deployment true && DOCKER_ENV=true RACK_ENV=production bundle install
COPY . $APP_PATH

COPY docker-entrypoint.sh /usr/bin/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not needed?

ARG RUBY_VERSION=3.3.5
FROM ruby:${RUBY_VERSION}
# Use Red Hat Universal Base Image 8
FROM registry.access.redhat.com/ubi8/ubi:latest
Copy link

@rohit-joy rohit-joy May 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems that using latest is a SAST issue. I think you can use a specific version like this 8.10-1262.

Or perhaps even UBI 9: https://catalog.redhat.com/software/containers/ubi9/ubi/615bcf606feffc5384e8452e?container-tabs=packages

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.

Dockerfile should be configured to run application as non-root user.
2 participants