From e94e8697982d9091587f7cfd9d9feb9e320d9164 Mon Sep 17 00:00:00 2001 From: Carson Reinke Date: Sat, 18 Mar 2023 12:54:02 -0400 Subject: [PATCH] Fix Docker by removing vendor and updating golang version --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe6a447..dde8ead 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,12 @@ -FROM golang:1.12 as builder +FROM golang:1.15 as builder WORKDIR /project COPY main.go go.mod go.sum ./ COPY downloader ./downloader -ADD vendor ./vendor ADD version ./version # Production-ready build, without debug information specifically for linux -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o=gitmoo-goog -mod=vendor . +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o=gitmoo-goog . FROM alpine:3.12