Asked by: Kit
I am trying to build a Dockerfile.
FROM php:7
RUN mkdir -p /home/winpc/test/laravelApp/app
WORKDIR /home/winpc/test/laravelApp/app
COPY composer.json /home/winpc/test/laravelApp/app
RUN composer install
COPY . /home/winpc/test/laravelApp/app
CMD php artisan serve --host=0.0.0.0 --port=8181
EXPOSE 8181
But when i run the build command it says:
docker build -t lar-app .
/bin/sh: 1: composer: not found
The command '/bin/sh -c composer install' returned a non-zero code: 127
But when I type just composer it is properly displaying the information I guess the problem is with the command:
RUN composer install
Here I am using Ubuntu 14.04
No comments:
Post a Comment