Allow multiplayer server build to resolve Go module sums

This commit is contained in:
Admin 2026-09-21 01:32:34 +00:00
parent 2ea8bbd647
commit 4bf7ff46a8

View File

@ -3,7 +3,7 @@ WORKDIR /src
COPY go.mod ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go test ./... && go build -trimpath -ldflags='-s -w' -o /out/airship-server .
RUN CGO_ENABLED=0 GOOS=linux go test -mod=mod ./... && go build -mod=mod -trimpath -ldflags='-s -w' -o /out/airship-server .
FROM alpine:3.21
RUN apk add --no-cache ca-certificates