FROM alpine:latest
RUN apk add --no-cache nginx && mkdir -p /var/www/html /run/nginx && \
    ln -sf /dev/stdout /var/log/nginx/access.log && \
    ln -sf /dev/stderr /var/log/nginx/error.log
COPY nginx.conf /etc/nginx/http.d/default.conf
COPY index.html /var/www/html/index.html
CMD ["nginx", "-g", "daemon off;"]
EXPOSE 80
