For some reason, after building the docker image from this Dockerfile, entrypoint.sh isn't executable. This causes "Permission denied" when the file is tried to be executed via tini.
/tor # ls -la /usr/local/bin
total 20968
drwxr-xr-x 1 root root 28 Apr 29 16:36 .
drwxr-xr-x 1 root root 6 Apr 29 16:36 ..
-rw-rw-r-- 1 nonroot nonroot 4134 Apr 29 16:27 client_auth.sh
-rw-rw-r-- 1 nonroot nonroot 9884 Apr 29 16:27 entrypoint.sh
-rwxr-xr-x 1 root root 16098856 Apr 29 16:36 tor
-rwxr-xr-x 1 root root 2431128 Apr 29 16:36 tor-gencert
-rwxr-xr-x 1 root root 2090000 Apr 29 16:36 tor-print-ed-signing-cert
-rwxr-xr-x 1 root root 816328 Apr 29 16:36 tor-resolve
-rwxr-xr-x 1 root root 1375 Apr 29 16:36 torify
I understand Dockerfile contains the line
COPY --chown=nonroot:nonroot --chmod=go+rX,u+rwX entrypoint.sh /usr/local/bin
which should set the X bit. Except for some reason it doesn't.
I'm using Docker version 20.10.12, build 20.10.12-0ubuntu2~20.04.1. I built from 7df26fc.
For some reason, after building the docker image from this Dockerfile, entrypoint.sh isn't executable. This causes "Permission denied" when the file is tried to be executed via tini.
I understand Dockerfile contains the line
COPY --chown=nonroot:nonroot --chmod=go+rX,u+rwX entrypoint.sh /usr/local/binwhich should set the X bit. Except for some reason it doesn't.
I'm using Docker version 20.10.12, build 20.10.12-0ubuntu2~20.04.1. I built from 7df26fc.