I have a Dockerfile where I want to run a script called myscript.sh. I move this script to /bin folder and make it executable. But it gives standard_init_linux.go:219: exec user process caused: exec format error when executed via Docker run. Here are the files
Dockerfile
FROM openjdk:8-jdk-alpine
ADD target/entity-linker-1.war entity-linker-1.war
EXPOSE 8080
COPY myscript.sh /bin/myscript.sh
ENV PATH="${PATH}:/bin/myscript.sh"
RUN ["chmod", "+x", "/bin/myscript.sh"]
ENTRYPOINT ["/bin/myscript.sh"]
myscript.sh
echo 'test'