Skip to content

Commit 516a442

Browse files
author
yuhojae
committed
test
1 parent 8403297 commit 516a442

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ COPY . .
1111

1212
RUN npm run build
1313

14+
RUN npm install -g serve
15+
1416
EXPOSE 3000
1517

1618
# 🚀 컨테이너를 계속 유지하도록 추가
17-
CMD ["npm", "run", "start"]
19+
CMD ["serve", "-s", "dist", "-l", "3000"]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "vite build --mode production",
99
"lint": "eslint .",
1010
"preview": "vite preview",
11-
"start": "vite --port 3000"
11+
"start": "serve -s dist -l 3000"
1212
},
1313
"dependencies": {
1414
"@tailwindcss/vite": "^4.0.3",

0 commit comments

Comments
 (0)