refactor(docker): replace GO_BASE_IMAGE with GO_RUNTIME_IMAGE across Dockerfiles

This commit is contained in:
Haitao Pan 2025-12-04 21:04:31 +08:00
parent d733981c22
commit 5264ffc9eb
2 changed files with 7 additions and 7 deletions

View File

@ -1,8 +1,8 @@
# ------------------------------
# Stage 1 — Build
# ------------------------------
ARG GO_BASE_IMAGE
FROM ${GO_BASE_IMAGE} AS builder
ARG GO_RUNTIME_IMAGE
FROM ${GO_RUNTIME_IMAGE} AS builder
WORKDIR /src
@ -16,8 +16,8 @@ RUN make build && make -pv /out/ && cp account /out/
# ------------------------------
# Stage 2 — Runtime
# ------------------------------
ARG GO_BASE_IMAGE
FROM ${GO_BASE_IMAGE} AS runtime
ARG GO_RUNTIME_IMAGE
FROM ${GO_RUNTIME_IMAGE} AS runtime
RUN apt-get update \
&& apt-get install -y --no-install-recommends \

View File

@ -1,6 +1,6 @@
# Multi-stage production build for the RAG server
ARG GO_BASE_IMAGE
FROM ${GO_BASE_IMAGE} AS builder
ARG GO_RUNTIME_IMAGE
FROM ${GO_RUNTIME_IMAGE} AS builder
WORKDIR /src
@ -10,7 +10,7 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/xcontrol-rag ./rag-server/cmd/xcontrol-server
FROM ${GO_BASE_IMAGE} AS runtime
FROM ${GO_RUNTIME_IMAGE} AS runtime
ENV CONFIG_PATH=/etc/xcontrol/rag-server.yaml PORT=8090