First commit, done on M6 from the PLAN.MD
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
FROM golang:1.23-alpine AS build
|
||||
WORKDIR /src
|
||||
COPY go.mod ./
|
||||
COPY server ./server
|
||||
COPY web ./web
|
||||
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/game ./server
|
||||
|
||||
FROM gcr.io/distroless/static
|
||||
COPY --from=build /out/game /game
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/game"]
|
||||
Reference in New Issue
Block a user