News for hackers. Stuff that matters.
Re:How to Dockerize a React App and Deploy It Easily by bafe on Wednesday November 01, 2023 @12:13PM (#38100387)
I have a multilayer build. On the Dev layer, we use vite and mount the react code as a volume. On the prod layer,we bundle everything using vite and serve the app using caddy. Best of both worlds. Dependencies are all containerised and handled using docker compose for local Dev. I have a local CI/CD pipeline using Task and the same pipeline using gitlab CI/CD for when we push to the repo.

There are no comments on this comment yet.