Dockerfile

This commit is contained in:
SR07 2025-05-16 17:37:11 +09:00
parent 0cb4ea8bfd
commit a3f9ff7750

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM node:20 AS build
WORKDIR /app
COPY . .
# ✅ typescript + vite 글로벌 설치
RUN npm install -g typescript vite
# ✅ 로컬 패키지 설치
RUN npm install
# ✅ 빌드
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]