I'm currently working on a Dockerfile that requires me to have permissions to read, write and execute on two specific folders. When it comes time to run the the chmod commands, it just fail. I can manually change the permissions once inside the docker container but it doesn't seem to pick it up from the command. This is what it looks like currently:
FROM <image-source>
SHELL ["/bin/bash", "-c"]
USER root
WORKDIR /bla/bla
COPY . .
CMD chmod 777 -R /src/main/*
CMD chmod 777 -R /app/main/*