Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
build(npm): change docker imagename output when running npm script `d…
Browse files Browse the repository at this point in the history
…ocker:imagename`

  ## what
  - change npm script `docker:imagename` to echo `pihole-dashboard`

  ## how

  ## why
  - this will be used as docker image name when building
  - this will be used as docker container name when running docker image

  ## where
  - ./package.json

  ## usage
  • Loading branch information
Clumsy-Coder committed Jul 29, 2023
1 parent bce8f6e commit 1cccaeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"generateVersion": "echo $(npm run -s repoLatestTag)-dev-\"$(npm run -s repoStatus)\"",
"generateBuildId": "git rev-parse head | cut -c 1-7 2> /dev/null || echo 'development'",
"generateEnv": "./generateEnvs.sh",
"docker:imagename": "echo 'imagename'",
"docker:imagename": "echo 'pihole-dashboard'",
"docker:tagname": "echo $(npm run -s repoLatestTag)-dev-$(npm run -s generateBuildId)-$(npm run -s repoStatus)",
"docker:build": "npm run generateEnv && docker build -t $(npm run -s docker:imagename):$(npm run -s docker:tagname) -f ./dockerfile .",
"docker:run": "docker run --rm -e 'PORT=3000' -p 3000:3000 -d --name $(npm run -s docker:imagename) $(npm run -s docker:imagename):$(npm run -s docker:tagname) && echo '\nGo to http://localhost:3000'",
Expand Down

0 comments on commit 1cccaeb

Please sign in to comment.