„Dockerfile“ ändern

This commit is contained in:
2019-05-30 12:22:57 +02:00
parent 962ba0b672
commit 25d4791c64

View File

@@ -12,6 +12,7 @@ ENV GAME_ID="template"
ENV GAME_NAME="template"
ENV GAME_PARAMS="template"
ENV GAME_PORT=27015
ENV MARIA_DB_ROOT_PWD="ExileMod"
ENV VALIDATE=""
ENV UID=99
ENV GID=100
@@ -28,7 +29,10 @@ RUN mkdir -p $DATA_DIR/".local/share/Arma 3" && mkdir -p $DATA_DIR/".local/share
RUN ulimit -n 2048
RUN /etc/init.d/mysql start && \
mysql -u root -e "CREATE USER IF NOT EXISTS 'steam'@'%' IDENTIFIED BY 'exile';FLUSH PRIVILEGES;"
mysql -u root -e "CREATE USER IF NOT EXISTS 'steam'@'%' IDENTIFIED BY 'exile';FLUSH PRIVILEGES;" && \
mysql -u root -e "CREATE DATABASE IF NOT EXISTS exile;" && \
mysql -u root -e "GRANT ALL ON exile.* TO 'steam'@'%' IDENTIFIED BY 'exile';" && \
mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '$MARIA_DB_ROOT_PWD';FLUSH PRIVILEGES;"
ADD /scripts/ /opt/scripts/
RUN chmod -R 770 /opt/scripts/