You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
454 B

FROM nginx:latest
RUN apt-get clean && apt-get update
RUN apt-get install -y spawn-fcgi \
fcgiwrap \
ruby-full \
RUN sed -i 's/www-data/nginx/g' /etc/init.d/fcgiwrap
RUN chown nginx:nginx /etc/init.d/fcgiwrap
ADD ./vhost.conf /etc/nginx/conf.d/default.conf
WORKDIR /var/www
CMD /etc/init.d/fcgiwrap start \
&& nginx -g 'daemon off;'