diff --git a/packages/grid/devspace.yaml b/packages/grid/devspace.yaml index 44b26219e39..74fa82886ec 100644 --- a/packages/grid/devspace.yaml +++ b/packages/grid/devspace.yaml @@ -26,13 +26,14 @@ vars: CONTAINER_REGISTRY: "docker.io" NODE_NAME: "mynode" VERSION: "0.8.5-beta.1" + PLATFORM: $(uname -m | grep -q 'arm64' && echo "arm64" || echo "amd64") # This is a list of `images` that DevSpace can build for this project # We recommend to skip image building during development (devspace dev) as much as possible images: backend: image: "${CONTAINER_REGISTRY}/${DOCKER_IMAGE_BACKEND}" - buildKit: {} + buildKit: { args: ["--platform", "linux/${PLATFORM}"] } dockerfile: ./backend/backend.dockerfile context: ../ tags: @@ -40,7 +41,8 @@ images: frontend: image: "${CONTAINER_REGISTRY}/${DOCKER_IMAGE_FRONTEND}" buildKit: - args: ["--target", "grid-ui-production"] + args: + ["--target", "grid-ui-production", "--platform", "linux/${PLATFORM}"] dockerfile: ./frontend/frontend.dockerfile target: "grid-ui-production" context: ./frontend @@ -48,7 +50,7 @@ images: - dev-${DEVSPACE_TIMESTAMP} seaweedfs: image: "${CONTAINER_REGISTRY}/${DOCKER_IMAGE_SEAWEEDFS}" - buildKit: {} + buildKit: { args: ["--platform", "linux/${PLATFORM}"] } buildArgs: SEAWEEDFS_VERSION: ${SEAWEEDFS_VERSION} dockerfile: ./seaweedfs/seaweedfs.dockerfile