Skip to content

Swtich to a npm build rather than npm start #7

Description

@dylanmcreynolds

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions