I am trying to create a docker image for the arm architecture of my gradle project, below is the docker file that I am using to create a image for amd aarch
# this dockerfile is used for github action
FROM gradle:6.5.0-jdk8 as builder
# build
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle build
# settle down the executable
FROM adoptopenjdk:8-jdk-hotspot
COPY --from=builder /home/gradle/src/build/distributions/sample-1.0-SNAPSHOT.tar /app/
WORKDIR /app
RUN tar -xvf sample-1.0-SNAPSHOT.tar
# run
ENTRYPOINT /app/generator-1.0-SNAPSHOT/bin/sample
can someone suggest me what are the changes that I will have to make it working for ARM64 aarch.
right now I get below errors for ARm ARch
=> ERROR [linux/arm64 internal] load metadata for docker.io/library/gradle:6.5.0-jdk8 4.9s
=> ERROR [linux/arm64 builder 1/4] FROM docker.io/library/gradle:6.5.0-jdk8
I believe that you would need to start with a different base image to build from. It seems that the gradle:6.5.0-jdk8 manifest does not have an entry for the arm64 architecture.