From 0edef344613151a4e0aebd95ccaf7a40f8211515 Mon Sep 17 00:00:00 2001 From: Tim McEwan Date: Fri, 30 Apr 2021 17:59:29 +1000 Subject: [PATCH] Update dev mode command to install sqlite3 deps --- docs/tutorial/using-bind-mounts/index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/tutorial/using-bind-mounts/index.md b/docs/tutorial/using-bind-mounts/index.md index 29138b8..9f7c3ae 100644 --- a/docs/tutorial/using-bind-mounts/index.md +++ b/docs/tutorial/using-bind-mounts/index.md @@ -54,6 +54,15 @@ So, let's do it! sh -c "yarn install && yarn run dev" ``` + If you are using an Apple Silicon Mac or another ARM64 device then use this command. + + ```bash + docker run -dp 3000:3000 \ + -w /app -v "$(pwd):/app" \ + node:12-alpine \ + sh -c "apk add --no-cache python g++ make && yarn install && yarn run dev" + ``` + - `-dp 3000:3000` - same as before. Run in detached (background) mode and create a port mapping - `-w /app` - sets the "working directory" or the current directory that the command will run from - `-v "$(pwd):/app"` - bind mount the current directory from the host in the container into the `/app` directory