Skip to content

Commit

Permalink
document howto debug docker prodction build
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Aug 4, 2023
1 parent 8b75435 commit 19eaaba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,15 @@ kubectl get pod <podname> -o yaml
kubectl exec -it <podname> -- /bin/bash
```

### Debug production build

Make sure the development version is running to reuse its mongodb instance.

```sh
docker build --platform=linux/amd64 -f ./docker/production/node/Dockerfile -t chubbyts-petstore-node .
docker run -it -e NODE_ENV=production -e MONGO_URI="<see docker-compose.yml, replace @mongo with @host.docker.internal>" -e SERVER_HOST=0.0.0.0 -e SERVER_PORT=3000 -p 3000:3000 chubbyts-petstore-node
```

## Copyright

2023 Dominik Zogg
Expand Down

0 comments on commit 19eaaba

Please sign in to comment.