feat: publish sanitized custom.97 source
This commit is contained in:
1022 files changed
+69903
-19207
No files matched your search
+5
-4
@@ -7,7 +7,7 @@ COPY ./web ./
|
||||
COPY ./VERSION /build/VERSION
|
||||
RUN DISABLE_ESLINT_PLUGIN='true' VITE_REACT_APP_VERSION=$(cat /build/VERSION) bun run build
|
||||
|
||||
FROM golang:1.26.1-alpine@sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039 AS builder2
|
||||
FROM golang:1.26.10-alpine@sha256:9ce231b28998b32e116927c61aa5c406183061d4f3f2d61b292c88e7f6bdf7ca AS builder2
|
||||
ENV GO111MODULE=on CGO_ENABLED=0 GOWORK=off
|
||||
|
||||
ARG TARGETOS
|
||||
@@ -18,9 +18,10 @@ ENV GOEXPERIMENT=greenteagc
|
||||
WORKDIR /build
|
||||
|
||||
ADD go.mod go.sum ./
|
||||
# relaykit is a local submodule referenced via replace; its go.mod must be
|
||||
# present for go mod download to resolve the main module graph.
|
||||
# relaykit and tokenkit are local submodules referenced via replace; their
|
||||
# go.mod files must be present for go mod download to resolve the main module graph.
|
||||
ADD relaykit/go.mod ./relaykit/go.mod
|
||||
ADD tokenkit/go.mod ./tokenkit/go.mod
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
@@ -28,7 +29,7 @@ COPY --from=builder /build/web/dist ./web/dist
|
||||
RUN go test ./service -run TestAppendStreamStatusTreatsClientGoneAsDisplayNormal
|
||||
RUN go test ./controller -run 'TestClientFacing(OpenAIErrorHidesUpstreamDetails|ClaudeErrorHidesUpstreamDetails|ErrorKeepsLocalValidationMessage)'
|
||||
RUN go test ./controller -run TestPublicUpstreamErrorContent
|
||||
RUN go build -ldflags "-s -w -X 'github.com/QuantumNous/new-api/common.Version=$(cat VERSION)'" -o new-api
|
||||
RUN go build -pgo="$(go list -m -f '{{.Dir}}' github.com/Calcium-Ion/moejs)/default.pgo" -ldflags "-s -w -X 'github.com/QuantumNous/new-api/common.Version=$(cat VERSION)'" -o new-api
|
||||
|
||||
FROM debian:bookworm-slim@sha256:f06537653ac770703bc45b4b113475bd402f451e85223f0f2837acbf89ab020a
|
||||
|
||||
|
||||
Reference in new issue
Block a user