-
Notifications
You must be signed in to change notification settings - Fork 269
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
26 lines (18 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ghcr.io/redhat-cop/containers-quickstarts/jenkins-agent:v4.18
LABEL name="redhat-cop/jenkins-agent-ruby" \
io.k8s.display-name="Jenkins Agent Ruby" \
io.k8s.description="The jenkins agent ruby." \
com.redhat.component="redhat-cop/containers-quickstarts/jenkins-agent-ruby"
# renovate: datasource=repology depName=ubi_8/ruby
ARG RUBY_VERSION=3.1.2
USER root
RUN dnf -y module enable ruby:${RUBY_VERSION%.*} && \
dnf install --nodocs -y ruby ruby-devel rubygem-rake rubygem-bundler libyaml-devel autoconf automake gcc make redhat-rpm-config && \
dnf clean all -y
# Copy extra files to the image.
COPY ./root/ /
RUN chown -R 1001:0 /opt/app-root && \
chmod -R ug+rwx /opt/app-root
USER 1001
WORKDIR /opt/app-root
RUN ruby -v