diff --git a/Dockerfile b/Dockerfile index 2863afd..5d6da3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,13 +7,17 @@ RUN GO111MODULE=on RUN mkdir /app -COPY . /app/insights-bot - WORKDIR /app/insights-bot +COPY go.mod /app/insights-bot/go.mod +COPY go.sum /app/insights-bot/go.sum + RUN go env RUN go env -w CGO_ENABLED=0 RUN go mod download + +COPY . /app/insights-bot + RUN go build -a -o "release/insights-bot" "github.com/nekomeowww/insights-bot/cmd/insights-bot" # --- runner ---