Skip to content

Commit

Permalink
Use go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Aug 22, 2018
1 parent bb9c9cc commit b13084e
Show file tree
Hide file tree
Showing 6 changed files with 523 additions and 640 deletions.
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
FROM golang:1.10
FROM golang:1.11-rc
MAINTAINER Victor Castell <victor@victorcastell.com>

EXPOSE 8080 8946

RUN wget https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -O /usr/local/bin/dep && \
chmod +x /usr/local/bin/dep

RUN mkdir -p /go/src/github.com/victorcoder/dkron
WORKDIR /go/src/github.com/victorcoder/dkron

COPY Gopkg.toml Gopkg.lock ./
RUN dep ensure -v -vendor-only
RUN mkdir -p /app
WORKDIR /app

ENV GO111MODULE=on
COPY . .
RUN go install ./...
CMD ["dkron"]
Loading

0 comments on commit b13084e

Please sign in to comment.