From 11202f1b24d4b7de17bb9c121011e9211b59a044 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Sun, 25 Nov 2018 18:46:49 +0100 Subject: [PATCH] build with alpine, so that it runs in alpine --- Dockerfile.magneticod | 4 +++- Dockerfile.magneticow | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile.magneticod b/Dockerfile.magneticod index 4c3361a..3370dad 100644 --- a/Dockerfile.magneticod +++ b/Dockerfile.magneticod @@ -2,7 +2,9 @@ # Start from a Debian image with the latest version of Go installed # and a workspace (GOPATH) configured at /go. -FROM golang:1.10 AS build +FROM golang:1.10-alpine AS build + +RUN apk add --no-cache build-base curl git # Copy the local package files to the container's workspace. ADD ./Gopkg.toml /go/src/github.com/boramalper/magnetico/ diff --git a/Dockerfile.magneticow b/Dockerfile.magneticow index 05cc796..66cfba7 100644 --- a/Dockerfile.magneticow +++ b/Dockerfile.magneticow @@ -2,7 +2,9 @@ # Start from a Debian image with the latest version of Go installed # and a workspace (GOPATH) configured at /go. -FROM golang:1.10 AS build +FROM golang:1.10-alpine AS build + +RUN apk add --no-cache build-base curl git # Copy the local package files to the container's workspace. ADD ./Gopkg.toml /go/src/github.com/boramalper/magnetico/