web-check
web-check copied to clipboard
Update Dockerfile (#43)
Updates the Dockerfile with changes suggested by @GWnbsp in https://github.com/Lissy93/web-check/issues/43#issuecomment-1719212234
Summary of Changes
-
ARG Statements: Introduced
ARGstatements for Node.js and Debian versions, making the Dockerfile more customizable. - SHELL Command: Changed the default shell to Bash with certain options enabled, improving robustness.
- Chromium Installation: Updated Chromium installation to use Google's signing keys and repositories, aiming for more secure and up-to-date packages.
-
Chromium Version: Added a step to save Chromium's version into
/etc/chromium-versionfor reference. -
Directory Creation: Added a new directory
/app/datain the container's filesystem. -
CMD Change: Changed the
CMDto start Node.js server (server.js) instead of using yarn serve. - General Cleanup and Comments: Code has been refactored for better readability and detailed comments have been added for clarity.
- Dependency Installation: Kept yarn install and the removal of the Yarn cache, but the command is more streamlined.
-
Other Minor Changes:
9.1. Added flags like
-qqand--no-install-recommendsfor quieter and optimized installation. 9.2. Enhanced cleanup withrm -rf /var/lib/apt/lists/*.
Deploy Preview for web-check ready!
| Name | Link |
|---|---|
| Latest commit | a6711aeb63e6ea0d18c34832ea183f80c1b2271e |
| Latest deploy log | https://app.netlify.com/sites/web-check/deploys/6503664ee1b6290008a80b7c |
| Deploy Preview | https://deploy-preview-55--web-check.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.