-
Notifications
You must be signed in to change notification settings - Fork 11
Remove manual build step #91
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
base: main
Are you sure you want to change the base?
Conversation
9520bb8 to
e05e3da
Compare
|
(sorry about the email spam - the build runs very slowly on my local, so I was doing repeated force pushes for testing in CI) |
supertassu
left a comment
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.
This generally looks good, except for the one thing inline. This seems like a good use case for a multi-stage build instead of pulling Npm in the main image, but I'm fine with this approach as well.
Can you deploy this yourself or should I?
Dockerfile
Outdated
| COPY . /app | ||
|
|
||
| # Build JS assets | ||
| RUN apt update && \ |
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.
nit: apt-get should be used in favour of apt in scripts
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.
done.
Run `npm run build` while building the container. The compiled artifact is removed from the checked-in code, and added to .gitignore. Bug: T396991 Change-Id: I5dbb1da8561ef44384afe84319eb6dfb168123f8
supertassu
left a comment
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.
Actually, slight problem: this breaks the local development environment where docker-compose mounts the local folder over the file generated at build time.
Run
npm run buildwhile building the container. The compiled artifact is removed from the checked-in code, and added to .gitignore.Bug: T396991