Skip to content

Commit

Permalink
fix: docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
letehaha committed Sep 15, 2024
1 parent d39deff commit 02b3e35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions docker/prod/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ services:
- '8081:8081'
environment:
- NODE_ENV=production
env_file: ../../.env.production
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
"docker:dev:down": "docker compose --env-file .env.development -f ./docker/dev/docker-compose.yml down",
"docker:dev:destroy": "./docker/dev/docker-destroy.sh",
"docker:dev:run-in-container": "docker compose --env-file .env.development -f ./docker/dev/docker-compose.yml exec app",
"docker:prod:build": "docker build . -t letehaha/budget-tracker-be -f ./docker/prod/Dockerfile",
"docker:prod:preview": "docker compose --env-file .env.development -f ./docker/prod/docker-compose.yml up -d",
"docker:prod:build": "docker buildx build --platform linux/amd64 -t letehaha/budget-tracker-be:latest -f ./docker/prod/Dockerfile .",
"docker:prod:push": "docker push letehaha/budget-tracker-be",
"docker:prod:build-push": "npm run docker-build && npm run docker-push",
"docker:prod:preview": "docker compose -f ./docker/prod/docker-compose.yml up",
"docker:prod:preview:down": "docker compose -f ./docker/prod/docker-compose.yml down",
"docker:prod:build-push": "npm run docker:prod:build && npm run docker:prod:push",
"postinstall": "chmod +x ./post-install.sh && ./post-install.sh",
"prepare": "node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install"
},
Expand Down

0 comments on commit 02b3e35

Please sign in to comment.