Dockerfile 866 B

1234567891011121314151617181920212223242526
  1. FROM debian:stretch as build
  2. RUN apt-get update && apt-get install -y git clang cmake make gcc g++ libmariadbclient-dev libssl1.0-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev mysql-server p7zip git
  3. RUN update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
  4. RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang 100
  5. WORKDIR /data
  6. RUN git clone --single-branch -b 3.3.5 https://github.com/TrinityCore/TrinityCore.git
  7. RUN mkdir -p /data/TrinityCore/build
  8. WORKDIR /data/TrinityCore/build
  9. RUN cmake ../ -DCMAKE_INSTALL_PREFIX=/data/TrinityCore.install -DTOOLS=1 \
  10. && nice -n 20 make -j $(nproc) install && make clean
  11. ADD entry_world.sh /data/TrinityCore.install/bin
  12. ADD entry_auth.sh /data/TrinityCore.install/bin
  13. WORKDIR /data/TrinityCore.install/bin
  14. CMD ./entry_world.sh
  15. ENV COMMAND=./worldserver
  16. VOLUME ["/data/maps"]