# Dev container: Debian-based so bash is present (required by Cursor/VS Code).
# Production remains Alpine (see root Dockerfile).
FROM php:7.4-fpm

RUN apt-get update \
    && apt-get install -y --no-install-recommends nginx \
    && rm -rf /var/lib/apt/lists/*

COPY php/conf.d/ /usr/local/etc/php/conf.d/
COPY nginx/conf.d/ /etc/nginx/conf.d/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY src/ /usr/share/nginx/html/

ENTRYPOINT ["/entrypoint.sh"]
