FROM nginx:alpine

# Production nginx chỉ cần thư mục public để serve file tĩnh và route index.php.
# Laravel source + vendor nằm trong image PHP-FPM `toolchat-php`; không bind-mount ./backend
# ở VPS vì sẽ che mất /var/www/html/vendor trong container app/queue.
COPY docker/nginx/default.conf /etc/nginx/conf.d/default.conf
COPY backend/public /var/www/html/public

RUN mkdir -p /var/www/html/storage/app/public \
    && chown -R nginx:nginx /var/www/html
