Open dlhck opened 2 weeks ago
Some suggestions:
docker run my-vendure -h localhost -u vendure -p password vendure@latest
- and other variables so it very quick start for users who have docker and some db runningThis is a big topic but I'd start by taking into account the best practices from the official docs: https://docs.docker.com/build/building/best-practices/
Also, consider the rules in the official "Build checks": https://docs.docker.com/reference/build-checks/ as well as rules in popular dockerfile linters like hadolint: https://github.com/hadolint/hadolint
On suggestion 3 above: It's been popular in the past to make separate compose files like "dev" and "prod", however the latest guidance recommends utilizing "compose.override.yaml" and merging compose files to achieve the same effect with the native mechanism while making the code more DRY too as described here: https://docs.docker.com/compose/how-tos/multiple-compose-files/merge/
On suggestion 4 above: I totally agree that the rather new Compose Watch is great to leverage as described here: https://docs.docker.com/compose/how-tos/file-watch/
Cool new stuff is added to the dockerfile reference all the time so be sure to watch new release notes here over time: https://docs.docker.com/build/buildkit/dockerfile-release-notes/
I could probably write a book on all this but there's my top feedback to get started with and I'll continue to monitor this issue and chime in. Thank you everyone for your hard work :-)
Description:
Motivation:
Proposed Solution:
Additional Context: