Files
Country-Game---The-Desk/Dockerfile
T

12 lines
271 B
Docker

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"]