Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
IraqLobsterDE authored Nov 30, 2023
1 parent c90ad3d commit 86f5814
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@ RUN ./build.sh -j$(grep -c '^processor' /proc/cpuinfo)
RUN apt -y remove git gcc zlib1g-dev libssl-dev cmake
RUN apt -y autoremove

# Create the default config files and link to the config folder. start.sh will copy the default configs to the config folder if they don't exist already
RUN mkdir /config
RUN mkdir /default-config
WORKDIR /DarkflameServer/build
RUN mv *.ini /default-config/
RUN for file in /default-config/*.ini; do ln -s /config/$(basename $file) . ; done
# Disable unnecessary sudo auth
RUN sed -i "s/use_sudo_auth.*/use_sudo_auth=0/g" /default-config/masterconfig.ini

# Set default env vars
ENV MYSQL_DATABASE=luniserver_net

RUN mkdir -p /server/logs

# Set the start script as entrypoint
COPY start.sh start.sh
ENTRYPOINT [ "/bin/bash", "/server/start.sh" ]
COPY /start.sh /DarkflameServer/start.sh
ENTRYPOINT [ "/bin/bash", "/DarkflameServer/start.sh" ]

0 comments on commit 86f5814

Please sign in to comment.