Dockerize old react project (or give it a shot), make it work via Docker

Mr. CaT 🐈 cb5fa81378 Merge branch 'readme-for-more-info' of mrcat323/old-react-project into master 1 год назад
Dockerfile 81e5028df5 Minimizing image to less than 100mb 1 год назад
LICENSE c7fca33982 Initial commit 1 год назад
README.md b54d60058c Update README.md 1 год назад
default.conf d2b2f58067 Add nginx config 1 год назад

README.md

old-react-project

This repo (especially Dockerfile) helps you to setup "old" react or other nodejs projects and making it an image, so simply put Dockerfile to your project CHECK node VERSION IN Dockerfile, change it if you want to, then use it in your projects.

Further steps

After putting Dockerfile in your project, you need to build it (Also check npm install --legacy-peer-deps command, change it if you want to), then enter some commands to build an image to run later

docker build -t old-react-project .

Run the image:

docker run -t -p 80:80 -d old-react-project