Pin the Node version in the Docker example

This commit is contained in:
Max Sokolovsky
2023-06-13 16:45:42 +00:00
parent 8b0d06800d
commit 73202d6cd7
+1 -1
View File
@@ -55,7 +55,7 @@ You can also use [Docker](https://www.docker.com/) to launch the website.
The below command can be used to install the dependencies and run the site inside a container:
```
docker run --rm -it -v $PWD:$PWD -w $PWD -p 3000:3000 node /bin/sh -c "yarn install && yarn start -h 0.0.0.0"
docker run --rm -it -v $PWD:$PWD -w $PWD -p 3000:3000 node:18 /bin/sh -c "yarn install && yarn start -h 0.0.0.0"
```
Subsequent executions will check for updated dependencies, if there are none, it will skip the updates and quickly start the server.