Add an example docker-compose file with everything you need for the
server to work + reduce the amount of commands used in builds.
This commit is contained in:
parent
4339719eca
commit
1cdb010d2b
5 changed files with 75 additions and 17 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,16 +1,15 @@
|
|||
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
|
||||
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
|
||||
COPY config/ /gdps/config
|
||||
RUN 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/
|
||||
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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue