# FROM php:apache FROM php:8.1.17-apache RUN apt update && apt install -y git RUN git clone --depth 1 --branch master https://github.com/cvolton/gmdprivateserver /gdps COPY config/ /gdps/config RUN apt purge -y git && apt autoremove -y RUN chmod a+r /gdps RUN rm -rf /var/www/html RUN ln -s /gdps/* /var/www/html RUN mkdir -p /etc/apache2/conf-enabled COPY apache-config.conf /etc/apache2/conf-enabled/docker-php.conf COPY apache-site.conf /etc/apache2/sites-enabled/gdps.conf WORKDIR /gdps # ENTRYPOINT /bin/bash