diff --git a/Dockerfile b/Dockerfile index 0a59f0c..6d7c108 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM golang:alpine AS onBuild ADD aircat-srv-go /go/src/github.com/corbamico/phicomm-aircat-srv/aircat-srv-go WORKDIR /go -RUN go build ./src/github.com/corbamico/phicomm-aircat-srv/aircat-srv-go +RUN go env -w GO111MODULE=auto && go build ./src/github.com/corbamico/phicomm-aircat-srv/aircat-srv-go FROM alpine COPY --from=onBuild /go/aircat-srv-go /aircat/aircat-srv-go @@ -11,4 +11,4 @@ RUN addgroup -S aircat ; \ chown -R aircat:aircat /aircat USER aircat WORKDIR /aircat -CMD [ "/aircat/aircat-srv-go" ] \ No newline at end of file +CMD [ "/aircat/aircat-srv-go" ]