Open Jordan-Volcano opened 4 years ago
I have same error
: invalid optionash: -
my bash : RUN chmod u+x /tmp/do_we_need_xdebug.sh && /tmp/do_we_need_xdebug.sh
# do_we_need_xdebug.sh
#!/bin/bash -x
if [ "$ENV" == "dev" ] || [ "$ENV" == "test" ]; then
pecl install xdebug
mv /tmp/xdebug.ini /usr/local/etc/php/conf.d/
else
rm /tmp/xdebug.ini
fi
I use Docker with wsl
Hi everyone,
I'm new with docker, so sorry if this is a noob question :(
A friend share with me his project and I'm trying to create the container but I have an error.
Here is my input :
docker build -t project-py -f project-py/prod/Dockerfile .
And here is the error :
What I understand so far is he doesn't understand this line in my build.sh :
#!/bin/bash -e
I have done some test:
My friend doesn't have the error...
I'm working on W10 build 2004 on a surface Pro 7, with this version of docker :
Thanks a lot for your help