docksal / behat

A self-contained Docker image to run Behat with no external dependencies
34 stars 22 forks source link

ln: /usr/bin/php: File exists #9

Closed kamal2222ahmed closed 5 years ago

kamal2222ahmed commented 5 years ago

While doing a make for Dockerfile I get error:

$ docker build -t docksal/behat .
Sending build context to Docker daemon   22.7MB
Step 1/11 : FROM alpine:edge
 ---> 529f4bac5cdf
Step 2/11 : MAINTAINER Leonid Makarov <leonid.makarov@ffwagency.com>
 ---> Using cache
 ---> cd7a16d840f6
Step 3/11 : RUN apk --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community  add     bash     curl     git     unzip     php7     php7-xml     php7-zip     php7-xmlreader     php7-zlib     php7-opcache     php7-mcrypt     php7-openssl     php7-curl     php7-json     php7-dom     php7-phar     php7-mbstring     php7-ctype     && rm -rf /var/cache/apk/*
 ---> Using cache
 ---> db6f445d772d
Step 4/11 : RUN         ln -s /usr/bin/php7 /usr/bin/php
 ---> Running in 115d66ae42da
ln: /usr/bin/php: File exists
The command '/bin/sh -c ln -s /usr/bin/php7 /usr/bin/php' returned a non-zero code: 1
kamal2222ahmed commented 5 years ago

resolved by using docker run --rm -v $(pwd):/src docksal/behat --version instead of docker build -t docksal/behat .