This commit is contained in:
ingi 2026-05-16 09:20:11 +00:00
parent 8f6333b5fd
commit ea2f353f65
1 changed files with 23 additions and 0 deletions

23
Dockerfile Normal file
View File

@ -0,0 +1,23 @@
# 로컬 빌드 환경과 맞춘 최신 Node 버전
FROM node:22-alpine
WORKDIR /app
# 1. 실행에 필요한 파일들 복사
COPY package*.json ./
# 실행용 패키지만 빠르게 설치
RUN npm install --production
# 2. 로컬에서 올린 빌드 결과물 복사
COPY .next ./.next
COPY public ./public
COPY next.config.ts ./
# (만약 파일명이 next.config.js라면 수정하세요)
# 3. 환경 변수 (필요한 경우)
ENV NODE_ENV=production
EXPOSE 3000
# 4. 서버 시작
CMD ["npm", "start"]