Add command for ARM based chip. (#15748)

* Add command for ARM based chip.
There is an example of command for ARM at the beginning but the second command is missing it.
This commit is contained in:
Kirill Khistyaev 2022-09-29 10:21:24 -07:00 committed by GitHub
parent 52e1cd71fb
commit 2ceb39c6cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -213,6 +213,19 @@ With all of that explained, let's start our dev-ready container!
node:12-alpine \
sh -c "yarn install && yarn run dev"
```
If you are using an ARM based chip, e.g. Macbook M1 Chips / Apple Silicon, then use this command.
```console
$ docker run -dp 3000:3000 \
-w /app -v "$(pwd):/app" \
--network todo-app \
-e MYSQL_HOST=mysql \
-e MYSQL_USER=root \
-e MYSQL_PASSWORD=secret \
-e MYSQL_DB=todos \
node:12-alpine \
sh -c "apk add --no-cache python2 g++ make && yarn install && yarn run dev"
```
If you are using Windows then use this command in PowerShell.