18 lines
464 B
Docker
18 lines
464 B
Docker
FROM golang:1.11.2-alpine3.8
|
|
|
|
# Remove the cache to avoid warning message during `apk info`
|
|
RUN rm -rf /var/cache/apk/* && \
|
|
rm -rf /tmp/*
|
|
RUN apk update
|
|
|
|
# GO and PATH env variables already set in golang image
|
|
# to reduce download time
|
|
RUN apk --no-cache add -U make git musl-dev gcc
|
|
|
|
RUN wget https://raw.githubusercontent.com/golang/dep/master/install.sh && sh install.sh
|
|
|
|
WORKDIR $GOPATH/src/github.com/kratisto/MamContract
|
|
ADD . .
|
|
|
|
RUN make ensure-vendor
|