chore: Docker Hub 장애 우회 - WACE Docker Registry 사용

This commit is contained in:
dohyeons
2025-10-20 18:26:57 +09:00
parent 70f6093fb5
commit 74487b5455
2 changed files with 5 additions and 7 deletions

View File

@@ -1,13 +1,11 @@
# syntax=docker/dockerfile:1
# Base image (Debian-based for glibc + OpenSSL compatibility)
FROM node:20-bookworm-slim AS base
# Base image (WACE Docker Hub)
FROM dockerhub.wace.me/node:20.19-alpine.linux AS base
WORKDIR /app
ENV NODE_ENV=production
# Install OpenSSL, curl (for healthcheck), and required certs
RUN apt-get update \
&& apt-get install -y --no-install-recommends openssl ca-certificates curl \
&& rm -rf /var/lib/apt/lists/*
RUN apk add --no-cache openssl ca-certificates curl
# Dependencies stage (install production dependencies)
FROM base AS deps
@@ -15,7 +13,7 @@ COPY package*.json ./
RUN npm ci --omit=dev --prefer-offline --no-audit && npm cache clean --force
# Build stage (compile TypeScript)
FROM node:20-bookworm-slim AS build
FROM dockerhub.wace.me/node:20.19-alpine.linux AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci --prefer-offline --no-audit && npm cache clean --force

View File

@@ -1,5 +1,5 @@
# Multi-stage build for Next.js
FROM node:20-alpine AS base
FROM dockerhub.wace.me/node:20.19-alpine.linux AS base
# Install dependencies only when needed
FROM base AS deps