Last active
April 26, 2017 09:36
-
-
Save jonathan-kosgei/a432998facae5b3482265c567573e2c2 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 debian:jessie | |
MAINTAINER a.mulholland | |
RUN apt-get update && apt-get upgrade -y &&\ | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&\ | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list &&\ | |
curl -sL https://deb.nodesource.com/setup_6.x | bash - | |
apt-get install -y nodejs yarn nginx php5-fpm php5-mysqlnd php5-curl php5-mcrypt php5-gd git curl mysql-client openssh-client | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
ADD default-web-config.txt /etc/nginx/sites-available/default-mr | |
ADD php.ini /etc/php5/fpm/php.ini | |
ADD ssh/ /root/.ssh/ | |
WORKDIR /etc/nginx/sites-enabled | |
RUN rm default | |
RUN ln -s /etc/nginx/sites-available/default-mr | |
ENV HOME /root | |
RUN chmod 600 /root/.ssh/* | |
RUN ssh-keyscan -p22 URL > /root/.ssh/known_hosts | |
WORKDIR /var/www | |
RUN git clone URL &&\ | |
chown root:www-data . -R &&\ | |
chmod 775 . -R | |
WORKDIR /var/www/jeff | |
RUN chmod 777 storage/ -R | |
RUN npm install gulp -g | |
ENTRYPOINT nginx -g 'daemon off;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment