Dockerfile
This commit is contained in:
parent
0cb4ea8bfd
commit
a3f9ff7750
18
Dockerfile
Normal file
18
Dockerfile
Normal 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;"]
|
||||||
Loading…
x
Reference in New Issue
Block a user