-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_rockylinux
More file actions
32 lines (25 loc) · 1008 Bytes
/
Dockerfile_rockylinux
File metadata and controls
32 lines (25 loc) · 1008 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
27
28
29
30
31
32
# syntax=docker/dockerfile:1
# Rocky Linux: An enterprise-grade operating system designed as a direct replacement for CentOS.
# This Dockerfile is a good choice for modern and resource-rich environments.
FROM rockylinux:9@sha256:d7be1c094cc5845ee815d4632fe377514ee6ebcf8efaed6892889657e5ddaaa6
# Set the terminal type to Xterm.
ENV TERM=xterm
# Define the default version of nodebuilder or pass in a different version (eg master) as an argument.
ARG NODEBUILDER_VERSION=v2.2.0
# Define the nodebuilder URL.
ARG NODEBUILDER_URL=https://github.com/bitcoin-tools/nodebuilder/raw/${NODEBUILDER_VERSION}/nodebuilder
ARG CI=false
# Check the current environment.
RUN uname -a \
&& cat /etc/os-release \
&& df -h \
&& grep Mem /proc/meminfo \
&& date -u
# Install sudo dependency.
RUN dnf makecache \
&& dnf --allowerasing --assumeyes install 'sudo' wget \
&& dnf clean all
# Download and execute the script.
RUN wget ${NODEBUILDER_URL} \
&& chmod u+x nodebuilder \
&& CI=${CI} ./nodebuilder