diff --git a/Dockerfile b/Dockerfile index ecde622..57f1e5b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ # Build Stage: Build bot using the alpine image, also install doppler in it -FROM golang:1.19 AS builder +FROM golang:1.20 AS builder RUN apt-get update && apt-get upgrade -y && apt-get install build-essential -y WORKDIR /app COPY . . RUN GOOS=`go env GOHOSTOS` GOARCH=`go env GOHOSTARCH` go build -o out/GigaUserbot -ldflags="-w -s" . # Run Stage: Run bot using the bot and doppler binary copied from build stage -FROM golang:1.19 +FROM golang:1.20 COPY --from=builder /app/out/GigaUserbot /app/GigaUserbot COPY --from=builder /app/changelog.json /app/changelog.json CMD ["/app/GigaUserbot"] diff --git a/goreleaser.Dockerfile b/goreleaser.Dockerfile index 159a823..960f590 100644 --- a/goreleaser.Dockerfile +++ b/goreleaser.Dockerfile @@ -1,3 +1,3 @@ -FROM golang:1.19 +FROM golang:1.20 COPY giga changelog.json /app/ CMD ["/app/giga"]