Updates
- apache2 config - dockerfile changes
This commit is contained in:
parent
c128fd5032
commit
7ffda3b2a5
42 changed files with 1488 additions and 86 deletions
20
Dockerfile
20
Dockerfile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue