Skip to content

Commit f196f8d

Browse files
committed
Pin node to 16
1 parent 155a03f commit f196f8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/safe-yarn.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ set -e
44

55
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
66

7-
docker image inspect node > /dev/null || docker pull node
7+
docker image inspect node:16 > /dev/null || docker pull node:16
88

99
if [ "$1" == "start" ]; then
1010
args="$1 -h 0.0.0.0 ${@:2}"
1111
else
1212
args="$@"
1313
fi
1414

15-
docker run -p 127.0.0.1:3000:3000 -it -v $SCRIPT_DIR:/data -w /data node yarn $args
15+
docker run -p 127.0.0.1:3000:3000 -it -v $SCRIPT_DIR:/data -w /data node:16 yarn $args

0 commit comments

Comments
 (0)