-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathrocky_10.Dockerfile
More file actions
27 lines (20 loc) · 1 KB
/
rocky_10.Dockerfile
File metadata and controls
27 lines (20 loc) · 1 KB
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
27
FROM rockylinux/rockylinux:10
RUN dnf -y upgrade
RUN dnf install -y rsync ruby ruby-devel rubygems-devel gcc 'dnf-command(config-manager)'
RUN dnf install -y gettext-devel libcurl-devel openssl-devel perl-CPAN perl-devel zlib-devel make wget autoconf git
RUN dnf config-manager --set-enabled crb
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
RUN dnf install -y rubygem-asciidoctor
ARG GOLANG_VERSION=1.25.3
ARG GOLANG_SHA256=0335f314b6e7bfe08c3d0cfaa7c19db961b7b99fb20be62b0a826c992ad14e0f
ARG GOLANG_ARCH=amd64
ENV GOROOT=/usr/local/go
ENV GOTOOLCHAIN=local
RUN cd /usr/local && \
curl -L -O https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz && \
[ "$(sha256sum go${GOLANG_VERSION}.linux-amd64.tar.gz | cut -d' ' -f1)" = "${GOLANG_SHA256}" ] && \
tar zxf go${GOLANG_VERSION}.linux-amd64.tar.gz && \
ln -s /usr/local/go/bin/go /usr/bin/go && \
ln -s /usr/local/go/bin/gofmt /usr/bin/gofmt
COPY centos_script.bsh /tmp/
CMD /tmp/centos_script.bsh