This image is serving the react app from the node server. This is not for production and should only be used in development.
|
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5174"] |
This should be changed to an image that builds the app through npm run build and serves it over nginx.
See this as an example of this method: https://github.com/als-computing/ArroyoXPS/blob/main/Dockerfile_frontend. Note that it uses build stages, too.
This image is serving the react app from the node server. This is not for production and should only be used in development.
view_tomography_recon_app/react/Dockerfile
Line 52 in 48b393b
This should be changed to an image that builds the app through
npm run buildand serves it over nginx.See this as an example of this method: https://github.com/als-computing/ArroyoXPS/blob/main/Dockerfile_frontend. Note that it uses build stages, too.