When I try to build this Docker-Image, I get the following error:

FROM java:8 WORKDIR /app ADD . /app EXPOSE 8080 RUN ./gradlew build CMD ./gradlew bootRun When I just build the app with "gradlew build" it runs and when I try to run this Docker Image with a Mac, it works too, just not for windows
EDIT:

No such file or directory... You need to actually copy over thegradlewshell scriptRUN lsstep before the Gradle commands... My point is thatADD . /appdid not actually ADD an executable file named./gradlew, as the error says