Created
August 31, 2018 05:22
-
-
Save Blizzke/00259f7b79f942f1591a5a7a4aff9c16 to your computer and use it in GitHub Desktop.
Dockerfile "includes"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(APT_UPDATE, `apt-get update')dnl | |
define(APT_UPGRADE, `apt-get upgrade -y')dnl | |
define(APT_INSTALL, `apt-get install -y --no-install-recommends')dnl | |
define(APT_INSTALL_BASE, `APT_INSTALL apt-utils apt-transport-https ca-certificates wget curl gnupg iputils-ping procps htop vim sudo')dnl | |
define(APT_GO, `APT_UPDATE && APT_UPGRADE && APT_INSTALL_BASE') | |
define(APT_UPDATE_INSTALL, `APT_UPDATE && APT_INSTALL')dnl | |
define(APT_CLEANUP, `apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*')dnl | |
dnl | |
ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian | |
include(base.m4) | |
RUN APT_GO \ | |
&& APT_INSTALL screen \ | |
&& APT_CLEANUP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
includes = ./_includes | |
build: | |
m4 -I $(includes) Dockerfile.m4 > Dockerfile | |
docker build $(DOCKER_ARGS) -t $(DOCKER_IMAGE) . | |
rm -f Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make -B -f Makefile build DOCKER_IMAGE=${DOCKER_IMAGE} DOCKER_ARGS="${DOCKER_ARGS}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment