- apache2 config
- dockerfile changes
This commit is contained in:
magmaus3 2023-04-15 18:14:38 +02:00
parent c128fd5032
commit 7ffda3b2a5
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251
42 changed files with 1488 additions and 86 deletions

View file

@ -1,17 +1,19 @@
# FROM php:apache
FROM php:8.1.17-apache
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 chmod a+r /gdps
RUN rm -rf /var/www/html
RUN ln -s /gdps/* /var/www/html
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
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
# 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
# ENTRYPOINT /bin/bash