Skip to content

Instantly share code, notes, and snippets.

@jonathan-kosgei
Last active April 26, 2017 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathan-kosgei/a432998facae5b3482265c567573e2c2 to your computer and use it in GitHub Desktop.
Save jonathan-kosgei/a432998facae5b3482265c567573e2c2 to your computer and use it in GitHub Desktop.
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