Bootstrapped with Create React App.
Set the environment variables in .env.development depending on your settings.
The variables REACT_APP... will get injected into the build and are available at runtime.
Install with npm install and run the development server with npm start.
Before build you need to provide the environment variables in .env.production or .env. Check out CRA docs on env vars.
Build with
npm run build
Resulting static assets will be stored at build/ and ready to be served.
The Dockerfile installs, builds and serves the project on a minimal nginx container.
Again, don't forget to provide the environment variables in .env.production or .env (CRA docs on env vars).
Build with
docker build -t sourcify-ui .
Run with
docker run -p 80:80 sourcify-ui