docker/Dockerfile
magmaus3 7ffda3b2a5
Updates
- apache2 config
- dockerfile changes
2023-04-16 13:35:31 +02:00

19 lines
694 B
Docker

FROM php:apache
RUN docker-php-ext-install pdo_mysql
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 chown -R www-data:www-data /gdps/data
RUN chmod 774 /gdps/data -R
RUN cp -r /etc/apache2/mods-available /tmp/mods
RUN rm -rf /etc/apache2/
COPY apache2 /etc/apache2
RUN mv /tmp/mods /etc/apache2/mods-available
# HACK: Hide all errors, fixes an issue where php's errors are added
# to responses that can't have additional data, like getGJLevels21.php
RUN echo "error_reporting =" | tee /usr/local/etc/php/conf.d/noerrors.ini
WORKDIR /gdps