Install some packages into a Docker image

This commit is contained in:
Radon Rosborough 2020-06-05 19:20:01 -06:00
parent ff86d1f06d
commit 5e3a4a44fb
2 changed files with 45 additions and 0 deletions

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM ubuntu:rolling
COPY scripts/docker-install.bash /tmp/
RUN /tmp/docker-install.bash

41
scripts/docker-install.bash Executable file
View File

@ -0,0 +1,41 @@
#!/usr/bin/env bash
set -e
set -o pipefail
packages="
# Handy utilities
bsdmainutils
curl
emacs-nox
git
make
nano
vim
wget
# C/C++
clang
# Haskell
cabal-install
ghc
# Node.js
nodejs
npm
# Python
python3
python3-pip
python3-venv
"
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y $(grep -v "^#" <<< "$packages")
rm -rf /var/lib/apt/lists/*
rm "$0"