Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 1 addition & 1 deletion goreleaser.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM golang:1.19
FROM golang:1.20
COPY giga changelog.json /app/
CMD ["/app/giga"]