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

2 years ago

I've my sh script, to download & extract archive with resources
but "Permission denied", is it impossible to execute my sh scripts ?

15 Replies

satan1c
PROOP

2 years ago

0a331e59-5347-402a-82a3-341d3f7cfe3b


2 years ago

nixpacks or Dockerfile?


satan1c
PROOP

2 years ago

Dockerfile


2 years ago

then you need to do --chmod=755 when copying in the script


satan1c
PROOP

2 years ago

hm… I'll lookup for it thx)



satan1c
PROOP

2 years ago

yeah… I just don't do copy, so I guess I'll try chmod 755 ./archive.sh


2 years ago

if you don't do copy how does the script end up in the final image?


satan1c
PROOP

2 years ago

ADD . /app


2 years ago

ADD is not recommended


satan1c
PROOP

2 years ago

hm, so I need to do:

COPY /out ./
COPY --chmod=755 /archive.sh ./

?


2 years ago

yep


satan1c
PROOP

2 years ago

thx, I'll try it now


satan1c
PROOP

2 years ago

oh, yeah, that works, thx <3


2 years ago

no problem!


Loading...