Hi, I have installed docker ce on ubuntu server 16.04.
I’m newbie in Docker and I’m trying to write a docker file.
My intent is to get a “Lamp image” and prepare it for creating a new image ready for launch a new Drupal installation.
I created a new folder with a subfolder called “drupal” that contains the drupal’s installation files.
in my new folder I created this “dockerfile”:
ADD . /app
RUN service apache2 start
RUN service mysql start
RUN mv /app/drupal /var/www/html
RUN cd /var/www/html/drupal
RUN cp ./sites/default/default.settings.php ./sites/default/settings.php
but this doesn’t work: I received an error while executing the last “cp” command:
“no such file or directory”.
What’s I’m doing wrong?
I don’t know if I have to use RUN or CMD for my intent: what’s correct approach?
I thank you in advance for every suggestions