build with alpine, so that it runs in alpine

This commit is contained in:
Jan Grewe 2018-11-25 18:46:49 +01:00
parent 38179c271b
commit 11202f1b24
2 changed files with 6 additions and 2 deletions

View File

@ -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/

View File

@ -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/