-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document commands to run in dev docker containers #215
Conversation
sbliven
commented
Nov 15, 2023
- Update README
- Simplify frontend dockerfile
Remove nginx stuff; if this is needed, use the production image
I should have closed it with this |
Looks like half this PR got merged already. I'm not sure how that happened, but I've merged from main and this should be the full changes. |
``` | ||
|
||
A custom Dockerfile is used because the production image uses the node alpine base image which does not crosscompile on macOS. | ||
A custom Dockerfile is used because the production image builds the static site and then serves it via nginx. The development image serves the site using `ng serve` (webpack-dev-server) so it reflects the latest code and updates when files change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does the official image work on your mac? Because the alpine version of node did not work on mac for me. If this is the case for you as well, I would keep the comment as is and also keep the custom image with stages and the docker-file with target
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nginx:1.2-alpine doesn't work on arm64. Newer versions of nginx do. We should update all our images to use a recent alpine version.
[Previous PR](#215) - Improve documentation of the commands to run in each container - Some minor fixes to docker-compose to support recent docker versions ## Squashed commits - Refactor fe dev Dockerfile Remove nginx stuff; if this is needed, use the production image - Document commands to run in dev containers - Fix be_next command in README - Document BE env vars - Fix docker-compose Recent docker versions don't support depends_on in base profiles used with extends
This has been rebased in #229 |