Dockerize old react project (or give it a shot), make it work via Docker
|
1 год назад | |
---|---|---|
Dockerfile | 1 год назад | |
LICENSE | 1 год назад | |
README.md | 1 год назад | |
default.conf | 1 год назад |
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.
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