FROM nginx:latest COPY _files/ /tmp/_files/ RUN mv /tmp/_files/*.sh /docker-entrypoint.d/ \ && chmod +x /docker-entrypoint.d/*.sh \ && apt-get update \ && apt-get install --no-install-recommends -y \ mariadb-server php8.2-fpm sudo \ && mv /tmp/_files/nginx.conf /etc/nginx/nginx.conf \ && mv /tmp/_files/default.conf /etc/nginx/conf.d/default.conf \ && mv /tmp/_files/php.ini /etc/php/8.2/fpm/php.ini \ && mv /tmp/_files/50-server.cnf /etc/mysql/mariadb.conf.d/50-server.cnf \ && mv /tmp/_files/src/ /usr/share/nginx/ \ && chown -R www-data:www-data /usr/share/nginx/* \ && apt-get clean \ && rm -rf /tmp/_files EXPOSE 80