From 904f16c7775e0b2d44981578ef20d97793363b79 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 2 Feb 2021 14:49:37 -0800 Subject: [PATCH] Add golang to personal image --- Dockerfile.personal | 5 +++++ Makefile | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile.personal b/Dockerfile.personal index b702eaa..5a9bc08 100644 --- a/Dockerfile.personal +++ b/Dockerfile.personal @@ -1,6 +1,11 @@ ARG BASE_IMAGE=iamthefij/drone-pre-commit FROM ${BASE_IMAGE}:base +RUN apt-get update && \ + apt-get install -y --no-install-recommends golang=2:1.11~1 && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + # Add helper scripts COPY ./scripts /scripts diff --git a/Makefile b/Makefile index bcd2094..a043964 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,11 @@ build: ./Dockerfile .PHONY: build-personal build-personal: build ./Dockerfile.personal - docker build --build-arg "BASE_IMAGE=$(DOCKER_TAG)" -f ./Dockerfile.personal . + docker build \ + --build-arg "BASE_IMAGE=$(DOCKER_TAG)" \ + -f ./Dockerfile.personal \ + -t "$(DOCKER_TAG):personal" \ + . .PHONY: install-hooks install-hooks: