Skip to content

Commit

Permalink
switch container to use CentOS Stream 9 as base
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Apr 10, 2024
1 parent 7008091 commit a88d8d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
@@ -1,13 +1,12 @@
# Base container that is used for both building and running the app
FROM quay.io/centos/centos:stream8 as base
ARG RUBY_VERSION="2.7"
FROM quay.io/centos/centos:stream9 as base
ARG NODEJS_VERSION="18"
ENV FOREMAN_FQDN=foreman.example.com
ENV FOREMAN_DOMAIN=example.com

RUN \
dnf upgrade -y && \
dnf module enable ruby:${RUBY_VERSION} nodejs:${NODEJS_VERSION} -y && \
dnf module enable nodejs:${NODEJS_VERSION} -y && \
dnf install -y postgresql-libs ruby{,gems} rubygem-{rake,bundler} npm nc hostname && \
dnf clean all

Expand Down

0 comments on commit a88d8d3

Please sign in to comment.