Skip to content

Commit

Permalink
Fix gopath in dockerfile (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
KierranM authored Nov 28, 2018
1 parent b7a90e7 commit 092bb58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ LABEL maintainer="[email protected]" \
RUN useradd -u 10001 deadmanswatch

# Copy the code from the host and compile it
WORKDIR $GOPATH/src/github.com/kierranm/deadmanswatch
COPY ./vendor $GOPATH/src/github.com/kierranm/deadmanswatch/vendor
COPY ./main.go $GOPATH/src/github.com/kierranm/deadmanswatch/main.go
COPY ./cmd $GOPATH/src/github.com/kierranm/deadmanswatch/cmd
WORKDIR $GOPATH/src/github.com/KierranM/deadmanswatch
COPY ./vendor $GOPATH/src/github.com/KierranM/deadmanswatch/vendor
COPY ./main.go $GOPATH/src/github.com/KierranM/deadmanswatch/main.go
COPY ./cmd $GOPATH/src/github.com/KierranM/deadmanswatch/cmd
RUN go test ./...
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /deadmanswatch .

Expand Down

0 comments on commit 092bb58

Please sign in to comment.