diff --git a/server/Dockerfile b/server/Dockerfile index 5a94a94..6a3e784 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -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