diff --git a/Dockerfile b/Dockerfile index 8aaf874..9590270 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,10 @@ LABEL maintainer="kierranm@gmail.com" \ 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 .