Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions microservices/services/audit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ RUN --mount=type=cache,target=/go/pkg/mod \

# Run the audit-service on a pinned Alpine image as an unprivileged user.
# Configuration is environment-only; migrations are owned by the monolith.
FROM alpine:3.20 AS prebuilt
FROM alpine:3.24 AS prebuilt
COPY audit/.bin/main /app/main

FROM ${MAIN_SRC} AS main-src

FROM alpine:3.20
FROM alpine:3.24

WORKDIR /app

Expand Down
4 changes: 2 additions & 2 deletions microservices/services/auth/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ RUN --mount=type=cache,target=/go/pkg/mod \

# Run the auth-service on a pinned Alpine image as an unprivileged user.
# Configuration is environment-only; migrations are owned by the monolith.
FROM alpine:3.20 AS prebuilt
FROM alpine:3.24 AS prebuilt
COPY auth/.bin/main /app/main

FROM ${MAIN_SRC} AS main-src

FROM alpine:3.20
FROM alpine:3.24

WORKDIR /app

Expand Down
4 changes: 2 additions & 2 deletions microservices/services/bpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go build -trimpath -o main ./cmd/main.go

FROM alpine:3.20 AS prebuilt
FROM alpine:3.24 AS prebuilt
COPY bpm/.bin/main /app/main

FROM ${MAIN_SRC} AS main-src

FROM alpine:3.20
FROM alpine:3.24
WORKDIR /app
RUN apk add --no-cache tzdata wget \
&& addgroup -S app && adduser -S app -G app \
Expand Down
4 changes: 2 additions & 2 deletions microservices/services/file/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ RUN --mount=type=cache,target=/go/pkg/mod \

# Run the file-service on a pinned Alpine image as an unprivileged user.
# Configuration is environment-only; migrations are owned by the monolith.
FROM alpine:3.20 AS prebuilt
FROM alpine:3.24 AS prebuilt
COPY file/.bin/main /app/main

FROM ${MAIN_SRC} AS main-src

FROM alpine:3.20
FROM alpine:3.24

WORKDIR /app

Expand Down
4 changes: 2 additions & 2 deletions microservices/services/identity/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ RUN --mount=type=cache,target=/go/pkg/mod \

# Run the identity-service on a pinned Alpine image as an unprivileged user.
# Configuration is environment-only; migrations are owned by the monolith.
FROM alpine:3.20 AS prebuilt
FROM alpine:3.24 AS prebuilt
COPY identity/.bin/main /app/main

FROM ${MAIN_SRC} AS main-src

FROM alpine:3.20
FROM alpine:3.24

WORKDIR /app

Expand Down
4 changes: 2 additions & 2 deletions microservices/services/monitor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ RUN --mount=type=cache,target=/go/pkg/mod \
&& go build -trimpath -o migrate ./cmd/migrate

# Run the backend on a pinned Alpine image as an unprivileged user.
FROM alpine:3.20 AS prebuilt
FROM alpine:3.24 AS prebuilt
COPY monitor/.bin/main /app/main
COPY monitor/.bin/migrate /app/migrate

FROM ${MAIN_SRC} AS main-src

FROM alpine:3.20
FROM alpine:3.24

WORKDIR /app

Expand Down
6 changes: 3 additions & 3 deletions microservices/services/system/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \

# 预检与 ZIP 只需要这些接入源文件;快照在构建时固化,不挂载宿主仓库。
# 独立成阶段(不放 builder 里):prebuilt 快路径也要快照,但不该为它触发容器内编译。
FROM alpine:3.20 AS snapshot
FROM alpine:3.24 AS snapshot
COPY services/system/internal/api/routes.go /repository-snapshot/microservices/services/system/internal/api/routes.go
COPY web/src/router/index.tsx /repository-snapshot/microservices/web/src/router/index.tsx
COPY web/src/layouts/MainLayout.tsx /repository-snapshot/microservices/web/src/layouts/MainLayout.tsx
Expand All @@ -33,12 +33,12 @@ COPY services/monitor/migrations/ /repository-snapshot/microservices/services/mo

# Run the system-service on a pinned Alpine image as an unprivileged user.
# Configuration is environment-only; migrations are owned by the monolith.
FROM alpine:3.20 AS prebuilt
FROM alpine:3.24 AS prebuilt
COPY services/system/.bin/main /app/main

FROM ${MAIN_SRC} AS main-src

FROM alpine:3.20
FROM alpine:3.24

WORKDIR /app

Expand Down
Loading