mirror of
https://github.com/headporter81/ss-front-react.git
synced 2026-12-06 07:41:11 +09:00
This commit is contained in:
1 parent
cfda95c1ba
commit
a49df04adf
28 files changed
+734
-304
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
# 1단계: Next.js 정적 빌드 → /app/out
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# 2단계: nginx로 정적 파일 서비스 (기존 Vue 배포와 같은 방식)
|
||||
FROM nginx:alpine
|
||||
COPY --from=build /app/out /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
Reference in new issue
Block a user