-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile_redhat-ubi9
31 lines (25 loc) · 1.11 KB
/
Dockerfile_redhat-ubi9
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
# syntax=docker/dockerfile:1
# RHEL UBI is an enterprise-grade Linux distribution with long-term support.
# This Dockerfile is ideal for enterprise applications requiring strong support and stability.
FROM redhat/ubi9:latest@sha256:ea57285741f007e83f2ee20423c20b0cbcce0b59cc3da027c671692cc7efe4dd
# 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=v1.10.0
# Define the nodebuilder URL.
ARG NODEBUILDER_URL=https://github.com/bitcoin-tools/nodebuilder/raw/${NODEBUILDER_VERSION}/nodebuilder
ARG DEPENDENCIES_URL=https://github.com/bitcoin-tools/nodebuilder/raw/${NODEBUILDER_VERSION}/resources/dependencies/runtime_dependencies_dnf.txt
# 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 \
&& ./nodebuilder