|
@@ -1,3 +1,13 @@
|
|
|
# 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
|
|
|
+```
|