Major upgrade and refactor

This commit is contained in:
2025-02-27 20:12:11 +01:00
parent a3b780efe0
commit 3b4cd5c128
9 changed files with 168 additions and 9 deletions

View File

@@ -10,11 +10,24 @@ RUN echo "tibia:tibia" | chpasswd
WORKDIR /home/tibia
COPY app/ZnoteAAC /var/www/ZnoteAAC
COPY app/SabrehavenServer /home/tibia
RUN chown -R tibia:tibia /home/tibia
RUN chown -R www-data:www-data /var/www/ZnoteAAC
COPY app/SabrehavenServer /home/tibia/SabrehavenServer
COPY app/1mindeploy /home/tibia/1mindeploy
RUN chown -R tibia:tibia /home/tibia && chown -R www-data:www-data /var/www/ZnoteAAC
ENTRYPOINT ["/bin/bash"]
RUN chown -R tibia:tibia /home/tibia && chmod a+x /home/tibia/1mindeploy/DBCI.sh && service mariadb start && /home/tibia/1mindeploy/DBCI.sh
USER tibia
ENV TIBIA_VERSION="8.0"
ENTRYPOINT ["/home/tibia/1mindeploy/entrypoint.sh"]
USER root
#USER tibia
ENV TIBIA_VERSION="7.92"
ENV DB_USER="forgottenserver"
ENV DB_PASSWORD="forgotten"
ENV DB_DATABASE="forgottenserver"
ENV MYSQLSOCK="/run/mysqld/mysqld.sock"
ENV BIND_ONLY_GLOBAL_ADDRESS="false"
ENV PUBLIC_IP="127.0.0.1"
ENV LOGIN_PROTOCOL_PORT="7171"
ENV GAME_PROTOCOL_PORT="7172"
ENV STATUS_PROTOCOL_PORT="7171"