Skip to content

Commit

Permalink
package.json: Update scripts
Browse files Browse the repository at this point in the history
- Add docker:clean script
- Update docker-dev:start script
- Update docker-prod:start script
- Update docker-dev:build script
- Update docker-prod:build script
  • Loading branch information
burnoutprojects committed Jan 1, 2024
1 parent 4a17148 commit 297e81d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"test-tsc": "tsc --noEmit",
"postinstall": "prisma generate",
"docker-dev:start": "docker compose -f dev.compose.yaml build --no-cache && docker compose -f dev.compose.yaml up -d",
"docker-dev:build": "docker buildx build . -f docker/Dockerfile --target development -t snaily-cad-bot:dev",
"docker-prod:build": "docker buildx build . -f docker/Dockerfile --target production -t snaily-cad-bot:prod",
"docker:clean-build": "docker builder prune --force --all 2>&1 > /dev/null",
"docker-dev:start": "npm run docker-dev:build && docker compose -f dev.compose.yaml up -d && npm run docker:clean-build",
"docker-dev:stop": "docker compose -f dev.compose.yaml down",
"docker-prod:start": "docker compose -f prod.compose.yaml build --no-cache && docker compose -f prod.compose.yaml up -d",
"docker-prod:start": "npm run docker-prod:build && docker compose -f prod.compose.yaml up -d && npm run docker:clean-build",
"docker-prod:stop": "docker compose -f prod.compose.yaml down"
},
"dependencies": {
Expand Down

0 comments on commit 297e81d

Please sign in to comment.