FROM nginx:1.27-alpine

COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf
COPY docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
COPY docker/web/index/ /usr/share/nginx/html/ai-agent-admin/

RUN test -f /usr/share/nginx/html/ai-agent-admin/index.html

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]
