This commit is contained in:
Sense T 2024-04-23 15:30:13 +08:00
parent cb86a2b476
commit 7429e76cae
2 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,7 @@ RUN cd web && npm i && npm run build
FROM golang as server
WORKDIR /src
COPY --from=web /src .
RUN go get . && go generate ./... && go build . -trimpath -ldflags "-w -s -X main.Version=v1.0.0"
RUN go get . && go generate ./... && go build -trimpath -ldflags '-w -s -X main.Version=v1.0.0' .
FROM scratch
COPY --from=server /src/reCoreD-UI .

View File

@ -24,7 +24,6 @@
inherit version;
src = self;
GOPROXY = "https://goproxy.cn,direct";
ldflags = [
"-s"