FROM nginx

RUN apt-get update -qq && apt-get -y install apache2-utils

ENV RAILS_ROOT /<%= @app_home %>

WORKDIR /<%= @app_home %>

COPY nginx.conf /etc/nginx/conf.d/default.conf

EXPOSE 80 EXPOSE 443

# Use the “exec” form of CMD so Nginx shuts down gracefully on SIGTERM (i.e. `docker stop`) CMD [ “nginx”, “-g”, “daemon off;” ]