FROM nginx:alpine # Create required directories RUN mkdir -p /var/cache/nginx \ /var/cache/nginx/client_temp \ /var/cache/nginx/proxy_temp \ /var/cache/nginx/fastcgi_temp \ /var/cache/nginx/uwsgi_temp \ /var/cache/nginx/scgi_temp \ /var/run # Copy configuration files COPY conf.d/default.conf /etc/nginx/conf.d/ COPY nginx.conf /etc/nginx/ EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]