Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dockerfile gives error when space is used on ubuntu

Step 9/10 : RUN . ./setantenv.sh && ant clean all
 ---> Running in 10b2423a32ab
/bin/sh: ./setantenv.sh: No such file or directory

I have used that command in dockerfile

RUN . ./setantenv.sh && ant clean all

but it does not see first . and gives an error.

What can I do?

like image 722
user9708984 Avatar asked Dec 19 '25 09:12

user9708984


1 Answers

Try to add this in your dockerfile : ADD ./setantenv.sh /tmp/. and after RUN /tmp/setantenv.sh

like image 70
Kilian Avatar answered Dec 21 '25 21:12

Kilian