A month or so ago I used to run a bash script using the following Dockerfile
FROM ubuntu:20.04 RUN useradd -ms /bin/sh galileo USER galileo WORKDIR /home/galileo COPY . . USER root RUN chmod a+x sim.sh RUN chmod a+x files/solve RUN chmod a+x files/mutgen USER galileo ENTRYPOINT ./sim.sh
however I’ve been trying to run it again and every time I get permissions denied
/bin/sh: 1: ./sim.sh: Permission denied
I already try to use chown too and I wasn’t even able to run it as root. Is there something I am missing?