FROM php:8.2-apache

COPY angular-app/dist/app/browser/ /var/www/html/
COPY php/ /var/www/php/
COPY uploads/ /var/www/uploads/
COPY httpd.conf /etc/apache2/sites-available/000-default.conf
COPY --chmod=500 --chown=root:root entrypoint.sh /entrypoint.sh

#hadolint ignore=DL3002
USER root
ENV FLAG=FCSC{flag_placeholder}
CMD ["/entrypoint.sh"]
