2023-04-15 16:14:38 +00:00
|
|
|
FROM php:apache
|
|
|
|
RUN docker-php-ext-install pdo_mysql
|
2023-04-14 08:35:51 +00:00
|
|
|
|
2023-05-16 11:28:42 +00:00
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y git && apt-get clean
|
|
|
|
RUN git clone --depth 1 --branch master https://github.com/cvolton/gmdprivateserver /gdps && \
|
|
|
|
chown -R www-data:www-data /gdps/data && \
|
|
|
|
chmod 774 /gdps/data -R
|
2023-04-14 08:35:51 +00:00
|
|
|
COPY config/ /gdps/config
|
2023-05-16 11:28:42 +00:00
|
|
|
RUN cp -r /etc/apache2/mods-available /tmp/mods && ls /tmp/mods && \
|
|
|
|
rm -rf /etc/apache2/ && mkdir /etc/apache2 && \
|
|
|
|
mv /tmp/mods /etc/apache2/mods-available
|
2023-04-15 16:14:38 +00:00
|
|
|
COPY apache2 /etc/apache2
|
2023-04-14 08:35:51 +00:00
|
|
|
|
2023-04-15 16:14:38 +00:00
|
|
|
# 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
|
2023-04-14 08:35:51 +00:00
|
|
|
|
|
|
|
WORKDIR /gdps
|