Skip to content

Commit

Permalink
Merge pull request #420 from victorcoder/cobra
Browse files Browse the repository at this point in the history
Use cobra for commands
  • Loading branch information
Victor Castell authored Aug 25, 2018
2 parents d923128 + 5ed98af commit 25c2f1f
Show file tree
Hide file tree
Showing 28 changed files with 1,159 additions and 1,246 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
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 /app
WORKDIR /app

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
ENV GO111MODULE=on
COPY go.mod go.mod
COPY go.sum go.sum
RUN go mod download

COPY . .
RUN go install ./...

CMD ["dkron"]
Loading

0 comments on commit 25c2f1f

Please sign in to comment.