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 . .
RUN npm run build
EXPOSE 5173
CMD ["npm", "run", "serve"]

View File

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