chore: fix build dependencies and frontend config

- Bump Docker SDK, downgrade otel deps for Go 1.24 compatibility
- Fix duplicate i18n import in InstanceCard
- Fix SvelteKit prerender/strict config for SPA build
- Update Dockerfile with GOTOOLCHAIN=auto
- Generate package-lock.json and go.sum

WIP: still resolving Go 1.24 vs otel transitive dep versions
This commit is contained in:
2026-03-28 00:38:18 +03:00
parent 1f81ca9eb0
commit f0b52c6ab7
1849 changed files with 994396 additions and 8 deletions
+6 -2
View File
@@ -9,19 +9,23 @@ COPY web/ ./
RUN npm run build
# Stage 2: Build Go binary
FROM golang:1.23-alpine AS backend-builder
FROM golang:1.24-alpine AS backend-builder
RUN apk add --no-cache git ca-certificates
WORKDIR /build
COPY go.mod go.sum ./
# The project requires Go 1.25 (transitive dep from Docker SDK -> otelhttp).
# GOTOOLCHAIN=auto lets Go 1.24 download the required toolchain automatically.
ENV GOTOOLCHAIN=auto
RUN go mod download
COPY . .
# Copy built frontend into the expected embed location.
COPY --from=frontend-builder /build/web/build ./web/build
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /docker-watcher ./cmd/server
RUN GOTOOLCHAIN=auto CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /docker-watcher ./cmd/server
# Stage 3: Minimal runtime image
FROM alpine:3.19