mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 23:23:37 +01:00
pkl: Exec format error in Dockerfile
#168
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @scariabpc on GitHub (Jun 8, 2024).
Hi, I'm trying to use pkl inside of my Dockerfile. Currently the Dockerfile has something like this:
When this image runs on AWS ECS with Linux, the pkl commands work, but when I build and run the image locally on my Mac with M2 chip I get this error.
@HT154 commented on GitHub (Jun 8, 2024):
The binary you are using is
pkl-linux-amd64, which is for linux systems running Intel/amd64/x86_64 architecture processors. The build arg you are providing (pkl-macos-aarch64is for macOS systems running on ARM processors. To run in a linux container on ARM processors, you need to use thepkl-linux-aarch64binary.If you are building a multi-architecture container image then you can use the
TARGETARCHarg to choose the right binary to download. See the Docker documentation on how to use this arg: https://docs.docker.com/build/guide/multi-platform/@bioball commented on GitHub (Jun 10, 2024):
Closing as this is not a Pkl problem (see @HT154's comments)