123456789101112131415161718192021222324252627 |
- FROM ubuntu:trusty
- # append thrid party repositories
- COPY digital_ocean.list /etc/apt/sources.list.d/digital_ocean.list
- RUN apt-get update && apt-get install -y \
- apache2 \
- libapache2-mod-fastcgi
- # append fastcgi php-fpm configuration file
- COPY cloud.rmn.local.conf /etc/apache2/sites-available/cloud.rmn.local.conf
- # create virtual fcgi path
- RUN mkdir -p /fcgi
- RUN ln -s /var/www /fcgi
- # enable mods
- RUN a2enmod actions
- # enable sites
- RUN a2ensite cloud.rmn.local
- COPY bootstrap.sh /usr/local/bin/bootstrap.sh
- RUN chmod u+x /usr/local/bin/bootstrap.sh
- CMD bootstrap.sh
|