feat: simplify SOP to immediate-effect configuration
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM node:22-alpine AS web-builder
|
||||
FROM node:22-alpine AS frontend-builder
|
||||
|
||||
WORKDIR /src/web
|
||||
COPY web/package.json web/package-lock.json ./
|
||||
@@ -6,6 +6,12 @@ RUN npm ci
|
||||
COPY web/ ./
|
||||
RUN npm run build
|
||||
|
||||
WORKDIR /src/sdk
|
||||
COPY sdk/package.json sdk/package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY sdk/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM golang:1.24-alpine AS go-builder
|
||||
|
||||
ARG GOPROXY=https://goproxy.cn,direct
|
||||
@@ -13,7 +19,8 @@ WORKDIR /src
|
||||
COPY go.mod go.sum ./
|
||||
RUN GOPROXY=${GOPROXY} go mod download
|
||||
COPY . ./
|
||||
COPY --from=web-builder /src/web/dist ./web/dist
|
||||
COPY --from=frontend-builder /src/web/dist ./web/dist
|
||||
COPY --from=frontend-builder /src/sdk/dist ./sdk/dist
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/iqudo-top1 .
|
||||
|
||||
FROM alpine:3.22
|
||||
|
||||
Reference in New Issue
Block a user