Skip to content

Commit c27d476

Browse files
author
Zeming Leng
committed
fix(devcontainer): add commented option platform linux/amd64 to docker-compose for M chip Mac compatibility
- Added docker-compose.yml to specify platform linux/amd64 as an option - Adjusted devcontainer.json to use docker-compose setup - This fixes build issues on Apple Silicon Macs when building the dev container
1 parent 7d542b4 commit c27d476

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.devcontainer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
{
44
"name": "pandas",
55
"context": ".",
6-
"dockerFile": "Dockerfile",
6+
"service": "dev",
7+
"workspaceFolder": "/home/pandas",
8+
"dockerComposeFile": "docker-compose.yml",
9+
// The 'dockerFile' property is optional and can be used instead of 'dockerComposeFile' if you want to use a single Dockerfile.
10+
// If you use 'dockerFile', uncomment the line below and remove the 'dockerComposeFile' line above.
11+
// "dockerFile": "Dockerfile",
712

813
// Use 'settings' to set *default* container specific settings.json values on container create.
914
// You can edit these settings after create using File > Preferences > Settings > Remote.

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '3'
2+
services:
3+
dev:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
# Uncomment the line below if you are using Mac with M1/M2/M3 and encounter build issues.
8+
# platform: linux/amd64

0 commit comments

Comments
 (0)