Build ahead of Docker image pull

This commit is contained in:
cracklesparkle
2024-07-19 16:57:29 +09:00
parent 492fbd7d89
commit 748cf89b35
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@ RUN npm install
COPY . . COPY . .
RUN npm run build
EXPOSE 5173 EXPOSE 5173
CMD ["npm", "run", "serve"] CMD ["npm", "run", "serve"]

View File

@ -8,7 +8,7 @@
"build": "tsc && vite build", "build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview", "preview": "vite preview",
"serve": "tsc && vite build && serve -s dist -l 5173" "serve": "serve -s dist -l 5173"
}, },
"dependencies": { "dependencies": {
"-": "^0.0.1", "-": "^0.0.1",