add npm run on docker compose

v1
ajikamaludin 2 years ago
parent b2e33aa9b3
commit 2d1f2ff128

@ -40,6 +40,15 @@ services:
networks:
template:
ipv4_address: 10.8.0.99
nodejs:
image: node:16-alpine
container_name: template-node
ports:
- 5173:5173
volumes:
- ./:/var/www
working_dir: /var/www
entrypoint: ["npm","run", "dev"]
volumes:
templatedb:

@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"dev": "vite",
"dev": "vite --host 0.0.0.0",
"build": "vite build"
},
"devDependencies": {

Loading…
Cancel
Save