-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:gruberdev/gaming
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Build stage | ||
FROM golang:1.22 as builder | ||
FROM golang:1.22.2-bookworm as builder | ||
|
||
# Update package lists and install unzip and curl | ||
RUN apt-get update \ | ||
|
@@ -10,11 +10,13 @@ RUN apt-get update \ | |
COPY . /go/src/terraria | ||
WORKDIR /go/src/terraria | ||
|
||
ENV CGO_ENABLED=0 | ||
|
||
# Tidy the Go module dependencies and build the wrapper binary | ||
RUN go mod tidy && go build -o wrapper . | ||
|
||
# Final image stage | ||
FROM mono:slim | ||
FROM golang:1.22.2-bookworm | ||
|
||
# Add OCI annotations for the image | ||
LABEL org.opencontainers.image.authors="gruberdev <[email protected]>" | ||
|