I am trying to copy the outputs to distroless image
The scripts folder contain a python file named start
FROM <some image> as custom-image
RUN mkdir scripts
COPY scripts/start scripts/start
FROM gcr.io/distroless/python3
COPY --from=custom-image /scripts /scripts
when I run the container and go into the terminal:
# cd scripts
# ./start
/bin/sh: 3: ./start: Permission denied
#
Now when I add the chmod line:
RUN chmod +x scripts/start
FROM gcr.io/distroless/python3
COPY --from=custom-image /scripts /scripts
and I attempt to run the start script in terminal again:
/bin/sh: 3: ./start: not found