add complete dockerfile

This commit is contained in:
Leo Antunes 2018-08-23 00:23:47 +02:00
parent 95c2cbeaae
commit 092698694f
2 changed files with 16 additions and 1 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
/vendor

View file

@ -1 +1,15 @@
FROM
FROM golang:1.10-alpine
WORKDIR /go/src/app
RUN apk add --update git && go get github.com/golang/dep/cmd/dep
COPY Gopkg.toml Gopkg.lock ./
RUN dep ensure -vendor-only
COPY . .
RUN go install -v
CMD ["app"]