Fix warnings from docker buildx#1695
Conversation
fe87359 to
9ef2223
Compare
|
🎉 A review copy of this PR has been deployed! It is made of up two components Important Not all of the functionality of forms-runner is present in review apps. You should use the full dev environment to test the functionality which is disabled here. It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready For the sign in details and more information, see the review apps wiki page. |
Since we started using docker buildx in CI [[1]], we've been getting
check annotations with linting warnings for the Dockerfile in all PRs
(even ones which don't change the Dockerfile), which is very annoying.
This commit fixes all the warnings:
- UndefinedVar
- NODE_ENV needs to be declared as a build argument
- RAILS_ENV needs to be declared as a build argument in all
independent stages
- There is unlikely to be a need to set REDIS_URL to anything
specific, always set it to the same dummy value
[1]: #1687
`npm` wants us to use `--omit=dev` instead of `--only=production`.
9ef2223 to
1c549a0
Compare
|



What problem does this pull request solve?
Since we started using docker buildx in CI [1], we've been getting check annotations with linting warnings for the Dockerfile in all PRs (even ones which don't change the Dockerfile), which is very annoying.
This commit fixes all the warnings:
Things to consider when reviewing