ADD command not working Docker

FROM phusion/baseimage:0.9.16 

RUN apt-get update
RUN apt-get -y install apache2 libapache2-mod-php5 curl git

RUN add-apt-repository ppa:ondrej/php5-5.6
RUN apt-get update
RUN apt-get -y install python-software-properties
RUN apt-get update
RUN apt-get -y --force-yes install php5 php5-cli php5-mcrypt php5-curl php5-xdebug php5-json
RUN apt-get clean
RUN php5enmod mcrypt
RUN rm -rf /var/www/html
RUN curl -sS | php
RUN mv composer.phar /usr/local/bin/composer

COPY 000-default.conf /etc/apache2/sites-available/000-default.conf

ADD /home/raheel/code/laravel-app /var/www/laravel-app


COPY /var/www/laravel-app/
RUN ["chmod", "+x", "/var/www/laravel-app/"]
ENTRYPOINT ["/var/www/laravel-app/"]

I created the above Dockerfile to run laravel application.

Then i ran docker build -t raheelwp/laravel-app . command and it created the image without name. Then i ran docker tag imageid raheelwp/laravel-app . After this when i check docker images it shows my image with name.

  • Elasticsearch won't run with Docker
  • Kubernetes on Mesos, no suitable offer available
  • X11 forwarding of a GUI app running in docker
  • Reusable docker image for AngularJS
  • How do you iteratively develop with docker?
  • Issue in setting --sysctl net.core parameter with docker container
  • So far so good. But when i run docker run -t raheelwp/laravel-app and then login into container by docker exec -it containerid bash and do the ls on /var/www directory there is no laravel-app folder present there.

    I am new to docker and this is my first ever docker file. I would be very thankful to you to please guide me why i am having this problem and how to fix this.


  • Discourse run on nginx got 403 forbidden
  • boot2docker shellinit command ended up in error “Error requesting socket: exit status 255”
  • how do i run a container so that it is running behind a proxy + on running?
  • Using shared runners to access the gitlab registry
  • Docker alpine image : ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 “No such file or directory”)
  • Connect to Docker Swarm for Continuous deploy
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.