Hi,
I am using Bitbucket pipeline to build and deploy our apps. I’ve encountered a new issue with two of the them which were working before. Now the build fails and I get this in the logs:
[Warning] The requested image's platform (linux/arm/v8) does not match the detected host platform (linux/amd64/v4) and no specific platform was requested
Then I get
exec /bin/sh: exec format error
Any suggestion on how to solve the issue? I tried to add --platform=linux/arm/v8 after the FROM but it didn’t change anything.
The pipeline:
pipelines:
default:
- step:
name: Build Balena
image: node:20
caches:
- node
script:
- npm install -g balena-cli
- balena login --token $BALENA_CREDS
- balena build -f my-fleet
services:
- docker
The DockerFile:
FROM balenalib/raspberrypicm4-ioboard-python:3.10-build
ENV UDEV=on
WORKDIR /usr/src/app
COPY . /usr/src/app/
COPY ./entry.sh /usr/src/app/
RUN apt update &&\
apt install fbi \
unzip \
python-setuptools \
python3-setuptools \
python3-dev
RUN pip3 install -r /usr/src/app/requirements/prod.txt
CMD ["./entry.sh"]