-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: master
Are you sure you want to change the base?
Conversation
|
||
ARG ENCRYPTED_PRIVATE_KEY_SECRET | ||
|
||
ARG PLAT=x86_64 | ||
ARG RUBY_VERSION=3.2.0 |
There was a problem hiding this comment.
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/ |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
We are promoting ubi8 dockerfile as the official one.
Resolves: 779