Skip to content

Commit 5512d92

Browse files
authored
force amd64 in docker-compose to support m1 cpu (#2758)
in order to start the docker stack on an apple m1 cpu device it is necessary to set the platform attribute - otherwise the build will fail with this error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/src/app/node_modules/mapnik/lib/binding/mapnik.node --module_name=mapnik --module_path=/usr/src/app/node_modules/mapnik/lib/binding' (1)
1 parent 121860d commit 5512d92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
- "5432:5432"
1313

1414
tilemill:
15+
platform: linux/amd64
1516
build:
1617
context: ./
1718
ports:

0 commit comments

Comments
 (0)