chore(docker): setup google mirror for base images

This commit is contained in:
Tiago Yamamoto 2025-12-24 17:46:57 -03:00
parent 0aa93d0440
commit 7b5752f71f
5 changed files with 9 additions and 9 deletions

View file

@ -5,7 +5,7 @@
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Stage 1: Build # Stage 1: Build
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
FROM golang:1.24-alpine AS builder FROM mirror.gcr.io/library/golang:1.24-alpine AS builder
WORKDIR /build WORKDIR /build
@ -31,7 +31,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Stage 2: Production (Minimal Image) # Stage 2: Production (Minimal Image)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
FROM alpine:3.19 FROM mirror.gcr.io/library/alpine:3.19
# Security: Run as non-root user # Security: Run as non-root user
RUN addgroup -g 1001 -S appgroup && \ RUN addgroup -g 1001 -S appgroup && \

View file

@ -4,7 +4,7 @@
# ============================================================================= # =============================================================================
# Stage 1: Base with pnpm # 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 corepack enable && corepack prepare pnpm@9.15.4 --activate
RUN apk add --no-cache libc6-compat RUN apk add --no-cache libc6-compat
@ -31,7 +31,7 @@ RUN pnpm prune --prod
# ============================================================================= # =============================================================================
# Stage 4: Production - Minimal runtime # 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 # Security: non-root user
RUN addgroup -g 1001 -S nodejs && \ RUN addgroup -g 1001 -S nodejs && \

View file

@ -5,7 +5,7 @@
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Stage 1: Dependencies # Stage 1: Dependencies
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
FROM node:20-alpine AS deps FROM mirror.gcr.io/library/node:20-alpine AS deps
WORKDIR /app WORKDIR /app
@ -17,7 +17,7 @@ RUN npm ci --only=production --ignore-scripts && \
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Stage 2: Builder # Stage 2: Builder
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
FROM node:20-alpine AS builder FROM mirror.gcr.io/library/node:20-alpine AS builder
WORKDIR /app WORKDIR /app
@ -36,7 +36,7 @@ RUN npm run build
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Stage 3: Production Runner # Stage 3: Production Runner
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
FROM node:20-alpine AS runner FROM mirror.gcr.io/library/node:20-alpine AS runner
WORKDIR /app WORKDIR /app

View file

@ -2,7 +2,7 @@
# GoHorse Jobs Scraper - Python Dockerfile # GoHorse Jobs Scraper - Python Dockerfile
# ============================================================================= # =============================================================================
FROM python:3.12-slim FROM mirror.gcr.io/library/python:3.12-slim
WORKDIR /app WORKDIR /app

View file

@ -2,7 +2,7 @@
# GoHorse Jobs Seeder API - Production Dockerfile # GoHorse Jobs Seeder API - Production Dockerfile
# ============================================================================= # =============================================================================
FROM node:20-alpine FROM mirror.gcr.io/library/node:20-alpine
WORKDIR /app WORKDIR /app