ADD command not working Docker

FROM phusion/baseimage:0.9.16 
MAINTAINER Raheel <raheelwp@gmail.com>

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 https://getcomposer.org/installer | 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

EXPOSE 80

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

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 to delete Unreachable Nodes in Docker Cloud?
  • Maven: build Docker images of children projects
  • postgres pg_basebackup can't find .pg_pass file
  • How to use Liberty 8.5.5.9 Docker
  • Why does `docker images` also show the base image?
  • How can you write a docker daemon that can kick off other docker containers as needed?
  • 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.

    Thanks

  • selinux issues with Openshift 3.4 with dynamic persistant volumes using glusterfs
  • What's the point of data-only docker containers?
  • Docker MEAN.JS can't set to run in 'PRODUCTION' mode
  • Docker error when running image in custom directory
  • unbale to install glusterfs driver on Mac OS 10.11.6 Docker version 1.13.0
  • In docker, why does mounting a data volume container to a container makes it stop working?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.