chore: Docker Hub 장애 우회 - WACE Docker Registry 사용
This commit is contained in:
parent
70f6093fb5
commit
74487b5455
|
|
@ -1,13 +1,11 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
# Base image (Debian-based for glibc + OpenSSL compatibility)
|
# Base image (WACE Docker Hub)
|
||||||
FROM node:20-bookworm-slim AS base
|
FROM dockerhub.wace.me/node:20.19-alpine.linux AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
# Install OpenSSL, curl (for healthcheck), and required certs
|
# Install OpenSSL, curl (for healthcheck), and required certs
|
||||||
RUN apt-get update \
|
RUN apk add --no-cache openssl ca-certificates curl
|
||||||
&& apt-get install -y --no-install-recommends openssl ca-certificates curl \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Dependencies stage (install production dependencies)
|
# Dependencies stage (install production dependencies)
|
||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
|
|
@ -15,7 +13,7 @@ COPY package*.json ./
|
||||||
RUN npm ci --omit=dev --prefer-offline --no-audit && npm cache clean --force
|
RUN npm ci --omit=dev --prefer-offline --no-audit && npm cache clean --force
|
||||||
|
|
||||||
# Build stage (compile TypeScript)
|
# Build stage (compile TypeScript)
|
||||||
FROM node:20-bookworm-slim AS build
|
FROM dockerhub.wace.me/node:20.19-alpine.linux AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --prefer-offline --no-audit && npm cache clean --force
|
RUN npm ci --prefer-offline --no-audit && npm cache clean --force
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Multi-stage build for Next.js
|
# 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
|
# Install dependencies only when needed
|
||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue