-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile_amazonlinux
30 lines (24 loc) · 1013 Bytes
/
Dockerfile_amazonlinux
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
# syntax=docker/dockerfile:1
# Amazon Linux is a Linux server operating system from AWS, optimized for EC2.
# This Dockerfile is ideal for applications that are deployed on AWS and require seamless integration.
FROM amazonlinux:latest@sha256:97bee6ea9b724a96fc90f8a5a8738ec6d8a7c94a6b5a502dfed0461170b98137
# 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
# Check the current environment.
RUN uname -a \
&& cat /etc/os-release \
&& df -h \
&& grep Mem /proc/meminfo \
&& date -u
# Install dependencies.
RUN dnf makecache \
&& dnf --allowerasing --assumeyes install findutils gnupg2 'sudo' wget \
&& dnf clean all
# Download and execute the script.
RUN wget ${NODEBUILDER_URL} \
&& chmod u+x nodebuilder \
&& ./nodebuilder