mirror of
https://github.com/costela/docker-etchosts.git
synced 2025-05-10 17:35:41 +02:00
add complete dockerfile
This commit is contained in:
parent
95c2cbeaae
commit
092698694f
2 changed files with 16 additions and 1 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
|||
/vendor
|
16
Dockerfile
16
Dockerfile
|
@ -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"]
|
Loading…
Add table
Add a link
Reference in a new issue