-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile_gentoo
26 lines (20 loc) · 966 Bytes
/
Dockerfile_gentoo
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
# syntax=docker/dockerfile:1
# Gentoo is known for its customization, optimization at the expense of image build time.asdf
# This Dockerfile offers a stable base image but takes extra time to compile all dependencies.
FROM gentoo/stage3:latest@sha256:c62291fd8c884f567745cc0cec2b1c78c94479a64a7d464541cdf3d3b9ff347c
# 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
# Create the ebuild repository directory.
RUN [ -d /var/db/repos/gentoo/ ] || mkdir -p /var/db/repos/gentoo/
# Download and execute the script.
RUN /bin/sh -c "$(curl -fsSL ${NODEBUILDER_URL} )"