Hello Prefect Community. I have deployed an image ...
# ask-community
m
Hello Prefect Community. I have deployed an image with Docker to GCP Container Registry: FROM prefecthq/prefect:2-python3.11 COPY requirements.txt . RUN python -m pip install -r requirements.txt When I run the deployment, I get: "terminated: Application failed to start: "/usr/local/bin/python": exec format error" I read that it might be connected to the architecture I am building the image with. Do you have experience with this?
👀 1
a
are you building your image on Mac M1 or M2?
m
I am building it on a Mac M2
a
I would try to build it adding a flag
--platform linux/amd64
to docker build command. or putting the corresponding option to your docker-compose if you're using one or just build it somewhere else (eg in some projects on github I do it using github actions) I'm on mac m2 myself and docker+M2 is an absolute pain imo 🤣