-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from victorcoder/cobra
Use cobra for commands
- Loading branch information
Showing
28 changed files
with
1,159 additions
and
1,246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Oops, something went wrong.