-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile_debian
30 lines (24 loc) · 1.07 KB
/
Dockerfile_debian
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
# Debian is the foundation of countless other distributions, including Ubuntu and Linux Mint.
# This Dockerfile is ideal for users who want a stable, secure, and lightweight environment.
FROM debian:stable-slim@sha256:00a24d7c50ebe46934e31f6154c0434e2ab51259a65e028be42413c636385f7f
# 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 system updates and dependencies.
RUN apt-get -qq update \
&& DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes --no-install-recommends \
ca-certificates curl 'sudo' \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Download and execute the script.
RUN /bin/sh -c "$(curl -fsSL ${NODEBUILDER_URL} )"