This project was bootstrapped with Create React App. It was intentionally created with React 17, which contains several vulnerabilities, to demonstrate the utility of SBOMs and scanning for identifying vulnerabilities.
To containerize this app with Paketo buildpacks, run
pack build frontend-nginx \
--buildpack paketo-buildpacks/web-servers \
--buildpack paketo-buildpacks/source-removal \
--env BP_NODE_RUN_SCRIPTS=build \
--env BP_WEB_SERVER=nginx \
--env BP_WEB_SERVER_ROOT=build \
--env BP_INCLUDE_FILES=*.conf:build/* \
--sbom-output-dir ./sbom-content
- With
docker scan
docker scan frontend-nginx
- Scan the image with
grype
grype frontend-nginx
- Scan the SBOM outputted by the build with
grype
grype sbom:sbom-content/build/paketo-buildpacks_npm-install/build-modules/sbom.syft.json
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify