R
Railway5mo ago
Satan1c

/bin/sh: 1: ./archive.sh: Permission denied

I've my sh script, to download & extract archive with resources but "Permission denied", is it impossible to execute my sh scripts ?
Solution:
hm, so I need to do:
COPY /out ./
COPY --chmod=755 /archive.sh ./
COPY /out ./
COPY --chmod=755 /archive.sh ./
...
Jump to solution
15 Replies
Percy
Percy5mo ago
Project ID: 0a331e59-5347-402a-82a3-341d3f7cfe3b
Satan1c
Satan1cOP5mo ago
0a331e59-5347-402a-82a3-341d3f7cfe3b
Brody
Brody5mo ago
nixpacks or Dockerfile?
Satan1c
Satan1cOP5mo ago
Dockerfile
Brody
Brody5mo ago
then you need to do --chmod=755 when copying in the script
Satan1c
Satan1cOP5mo ago
hm... I'll lookup for it thx)
Satan1c
Satan1cOP5mo ago
yeah... I just don't do copy, so I guess I'll try chmod 755 ./archive.sh
Brody
Brody5mo ago
if you don't do copy how does the script end up in the final image?
Satan1c
Satan1cOP5mo ago
ADD . /app
Brody
Brody5mo ago
ADD is not recommended
Solution
Satan1c
Satan1c5mo ago
hm, so I need to do:
COPY /out ./
COPY --chmod=755 /archive.sh ./
COPY /out ./
COPY --chmod=755 /archive.sh ./
?
Brody
Brody5mo ago
yep
Satan1c
Satan1cOP5mo ago
thx, I'll try it now oh, yeah, that works, thx <3
Brody
Brody5mo ago
no problem!
Want results from more Discord servers?
Add your server