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

3 years ago
  1. FROM nginx:latest
  2. RUN apt-get clean && apt-get update
  3. RUN apt-get install -y spawn-fcgi \
  4. fcgiwrap \
  5. ruby-full \
  6. perl\
  7. libcgi-fast-perl
  8. RUN sed -i 's/www-data/nginx/g' /etc/init.d/fcgiwrap
  9. RUN chown nginx:nginx /etc/init.d/fcgiwrap
  10. ADD ./vhost.conf /etc/nginx/conf.d/default.conf
  11. WORKDIR /var/www
  12. CMD /etc/init.d/fcgiwrap start \
  13. && nginx -g 'daemon off;'