diff --git a/backend/Dockerfile b/backend/Dockerfile index d566e89..4a14950 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -5,7 +5,7 @@ # ----------------------------------------------------------------------------- # Stage 1: Build # ----------------------------------------------------------------------------- -FROM golang:1.24-alpine AS builder +FROM mirror.gcr.io/library/golang:1.24-alpine AS builder WORKDIR /build @@ -31,7 +31,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ # ----------------------------------------------------------------------------- # Stage 2: Production (Minimal Image) # ----------------------------------------------------------------------------- -FROM alpine:3.19 +FROM mirror.gcr.io/library/alpine:3.19 # Security: Run as non-root user RUN addgroup -g 1001 -S appgroup && \ diff --git a/backoffice/Dockerfile b/backoffice/Dockerfile index 7df8777..d29de38 100644 --- a/backoffice/Dockerfile +++ b/backoffice/Dockerfile @@ -4,7 +4,7 @@ # ============================================================================= # Stage 1: Base with pnpm -FROM node:20-alpine AS base +FROM mirror.gcr.io/library/node:20-alpine AS base RUN corepack enable && corepack prepare pnpm@9.15.4 --activate RUN apk add --no-cache libc6-compat @@ -31,7 +31,7 @@ RUN pnpm prune --prod # ============================================================================= # Stage 4: Production - Minimal runtime # ============================================================================= -FROM node:20-alpine AS production +FROM mirror.gcr.io/library/node:20-alpine AS production # Security: non-root user RUN addgroup -g 1001 -S nodejs && \ diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 9deeee0..16ba59e 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -5,7 +5,7 @@ # ----------------------------------------------------------------------------- # Stage 1: Dependencies # ----------------------------------------------------------------------------- -FROM node:20-alpine AS deps +FROM mirror.gcr.io/library/node:20-alpine AS deps WORKDIR /app @@ -17,7 +17,7 @@ RUN npm ci --only=production --ignore-scripts && \ # ----------------------------------------------------------------------------- # Stage 2: Builder # ----------------------------------------------------------------------------- -FROM node:20-alpine AS builder +FROM mirror.gcr.io/library/node:20-alpine AS builder WORKDIR /app @@ -36,7 +36,7 @@ RUN npm run build # ----------------------------------------------------------------------------- # Stage 3: Production Runner # ----------------------------------------------------------------------------- -FROM node:20-alpine AS runner +FROM mirror.gcr.io/library/node:20-alpine AS runner WORKDIR /app diff --git a/job-scraper-multisite/Dockerfile b/job-scraper-multisite/Dockerfile index 00e63ec..31989a7 100644 --- a/job-scraper-multisite/Dockerfile +++ b/job-scraper-multisite/Dockerfile @@ -2,7 +2,7 @@ # GoHorse Jobs Scraper - Python Dockerfile # ============================================================================= -FROM python:3.12-slim +FROM mirror.gcr.io/library/python:3.12-slim WORKDIR /app diff --git a/seeder-api/Dockerfile b/seeder-api/Dockerfile index 55ba806..ec5adb8 100644 --- a/seeder-api/Dockerfile +++ b/seeder-api/Dockerfile @@ -2,7 +2,7 @@ # GoHorse Jobs Seeder API - Production Dockerfile # ============================================================================= -FROM node:20-alpine +FROM mirror.gcr.io/library/node:20-alpine WORKDIR /app