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.

  • How can we use shared Dockerfile's which reside in different directories than the “current build context path”?
  • How to install nvm in a Dockerfile?
  • How to run Docker deamon on shared Linux kernel?
  • Compatability of Dockerfile RUN Commands Cross-OS (apt-get)
  • Docker images wont run in background
  • Dockerized Riak cluster - dynamic container IP
  • 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.


  • Volumes mounting as folders
  • Creating an easily-distributable dev environment - Docker/Vagrant? [closed]
  • AWS cloudwatch terminal output logs
  • Docker Like DB Deployment
  • Pulling docker image python:2.7-onbuild taking a long time
  • Docker - container started by docker-compose changing file ownership to root
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.