Browse Source

Merge branch 'readme-for-more-info' of mrcat323/old-react-project into master

Mr. CaT 🐈 1 year ago
parent
commit
cb5fa81378
1 changed files with 11 additions and 1 deletions
  1. 11 1
      README.md

+ 11 - 1
README.md

@@ -1,3 +1,13 @@
 # old-react-project
 # old-react-project
 
 
-Dockerize old react project (or give it a shot), make it work via Docker
+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
+```shell
+docker build -t old-react-project .
+```
+Run the image:
+```shell
+docker run -t -p 80:80 -d old-react-project
+```