Dockerfile 287 B

1234567891011121314
  1. FROM nginx:latest
  2. MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
  3. ADD nginx.conf /etc/nginx/
  4. ADD laravel.conf /etc/nginx/sites-available/
  5. RUN echo "upstream php-upstream { server php-fpm:9000; }" > /etc/nginx/conf.d/upstream.conf
  6. RUN usermod -u 1000 www-data
  7. CMD ["nginx"]
  8. EXPOSE 80 443