Created
October 18, 2016 09:42
-
-
Save otarza/1d501e3009ab35e5279d87107dd41e0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM andrewholgate/drupal-php70-dev:0.5.3 | |
MAINTAINER Andrew Holgate <andrewholgate@yahoo.com> | |
RUN DEBIAN_FRONTEND=noninteractive apt-get update | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y upgrade | |
# Project specific PHP dependencies. | |
# Install html-auditor module | |
RUN npm install -g html-auditor | |
RUN sed -i "389ienv[PATH] = /usr/local/bin:/usr/bin:/bin:$(npm bin -g)" /etc/php/7.0/fpm/pool.d/www.conf | |
# Copy over project specific setup script | |
COPY setup.sh /usr/local/bin/setup | |
RUN chmod +x /usr/local/bin/setup | |
RUN apt-get -y install zsh | |
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sudo zsh | |
RUN /bin/zsh | |
# Clean-up installation. | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y autoclean && \ | |
DEBIAN_FRONTEND=noninteractive apt-get -y autoremove | |
# Apache does not like PID files pre-existing | |
RUN rm -f /var/run/apache2/apache2.pid | |
RUN service apache2 restart | |
RUN service php7.0-fpm start | |
ENTRYPOINT ["/usr/local/bin/setup"] | |
CMD ["/usr/local/bin/run"] |
Author
otarza
commented
Oct 18, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment