jlelse
/
kis3
Archived
1
Fork 0

Use alpine:edge as base image for build

This commit is contained in:
Jan-Lukas Else 2019-04-15 14:22:19 +02:00
parent e9bfe9205d
commit 0cc64d9c53
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
FROM golang:1.12-alpine as build-base
RUN apk add --no-cache git gcc musl-dev tzdata
FROM alpine:edge as build-base
RUN apk add --no-cache go git gcc musl-dev tzdata
FROM build-base as packr
RUN go get github.com/gobuffalo/packr/v2/packr2
FROM build-base as build
COPY --from=packr /go/bin/packr2 /go/bin
COPY --from=packr /root/go/bin/packr2 /bin/
ADD . /app
WORKDIR /app
RUN GO111MODULE=on packr2