FROM alpine:latest RUN apk update && apk upgrade RUN apk add bash RUN apk add nginx RUN apk add php82 php82-fpm php82-opcache RUN apk add php82-gd php82-zlib php82-curl php82-bz2 php82-gettext php82-ldap php82-mbstring php82-pdo php82-pdo_mysql php82-session php82-xml COPY nginx /etc/nginx COPY php /etc/php8.2 RUN mkdir /var/run/php EXPOSE 80 STOPSIGNAL SIGTERM CMD ["/bin/bash","-c", "php-fpm82 && chmod 777 /app && nginx -g 'daemon off;'"]