Open ptahchiev opened 9 years ago
nearing 2024, problem still occurs in my case, on MacOS and M2 3x colleagues on Linux do not have the issue
Dockerfile is a simple:
FROM gradle:8.5-jdk21 AS builder ADD . /src WORKDIR /src RUN gradle clean build -is ... <omitted as the build fails on gradle command above>
This is supposed to build our app but the test step of gradle fails due to embedded redis not being able to succeed. Running
gradle clean build
locally works just fine, same with running tests through IDEA Intellij. It only happens duringdocker build
I solved this by using --platform=linux/amd64
on my Dockerfile
Also had issues with the gradle:8.5-jdk21-alpine
image, and could only make it work with gradle:8.5-jdk21