개발서버 수정사항 적용

This commit is contained in:
dohyeons 2025-10-21 09:29:35 +09:00
parent c3064ac01f
commit 21688d3815
3 changed files with 12 additions and 9 deletions

View File

@ -1,13 +1,9 @@
# 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 +11,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:18-alpine AS base
FROM dockerhub.wace.me/node:20.19-alpine.linux AS base
# curl 설치 (헬스체크용)
RUN apk add --no-cache curl

View File

@ -4,6 +4,13 @@ echo "============================================"
echo "WACE 솔루션 - 전체 서비스 시작 (분리형) - Linux"
echo "============================================"
echo ""
echo "🔄 최신 코드 가져오기..."
echo ""
git pull origin main || {
echo "❌ Git pull 실패. 계속 진행합니다..."
}
echo ""
echo "🚀 백엔드와 프론트엔드를 순차적으로 시작합니다..."
echo ""