Dockerfile 586 B

123456789101112131415161718192021222324252627
  1. FROM ubuntu:trusty
  2. # append thrid party repositories
  3. COPY digital_ocean.list /etc/apt/sources.list.d/digital_ocean.list
  4. RUN apt-get update && apt-get install -y \
  5. apache2 \
  6. libapache2-mod-fastcgi
  7. # append fastcgi php-fpm configuration file
  8. COPY cloud.rmn.local.conf /etc/apache2/sites-available/cloud.rmn.local.conf
  9. # create virtual fcgi path
  10. RUN mkdir -p /fcgi
  11. RUN ln -s /var/www /fcgi
  12. # enable mods
  13. RUN a2enmod actions
  14. # enable sites
  15. RUN a2ensite cloud.rmn.local
  16. COPY bootstrap.sh /usr/local/bin/bootstrap.sh
  17. RUN chmod u+x /usr/local/bin/bootstrap.sh
  18. CMD bootstrap.sh