Skip to content

Commit

Permalink
fix: Switch to Go modules for Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Nov 12, 2018
1 parent 61403cf commit 079b4ea
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ FROM golang:1.11
ARG SENTRY_DSN=""
ARG VERSION="development"

ENV GO_PATH="/go"
ADD . /src
WORKDIR /src

ADD . $GO_PATH/src/github.com/SierraSoftworks/bender
WORKDIR $GO_PATH/src/github.com/SierraSoftworks/bender

RUN go test -v ./...
RUN ["go", "test", "-v", "./..."]

ENV CGO_ENABLED=0
ENV GOOS=linux
Expand Down

0 comments on commit 079b4ea

Please sign in to comment.