Skip to content

Commit

Permalink
Adds npm scripts for rebuilding docker images
Browse files Browse the repository at this point in the history
One of these scripts can be used when developing locally
and the dependencies change.
Because dependencies are installed at build time for the image,
changed dependencies are never available in the container.
  • Loading branch information
mikeyaworski committed Jun 11, 2024
1 parent a61e9b8 commit 55cef93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"stop:nohup": "pkill -9 -f 'bin/ts-node'",
"restart:nohup": "npm run stop:nohup\nnpm run start:nohup",
"up": "docker-compose up",
"up:rebuild": "docker-compose up --build --force-recreate --renew-anon-volumes",
"docker-push": "./scripts/docker-push.sh",
"docker-push:latest": "./scripts/docker-push.sh latest",
"docker-pull": "docker pull mikeyaworski/utility-discord-bot:latest",
Expand All @@ -30,6 +31,7 @@
"stop:docker-compose": "docker-compose -f deploy/docker-compose.yml stop && docker-compose -f deploy/docker-compose.yml rm -f",
"restart:docker-compose": "npm run stop:docker-compose && npm run start:docker-compose",
"remove-volumes": "docker volume rm deploy_webroot deploy_certbot-etc deploy_certbot-var",
"remove-bot-image": "docker container rm utility-discord-bot && docker image rm utility-discord-bot-utility-discord-bot",
"logs:bot": "docker logs -f --timestamps utility-discord-bot",
"logs:cron": "cat /var/log/cron.log",
"logs:http": "docker logs -f --timestamps http-server",
Expand Down

0 comments on commit 55cef93

Please sign in to comment.