Warning, /rolisteam/rolisteam-packaging/rolisteam/Docker/server/Dockerfile is written in an unsupported language. File is not indexed.
0001 # 0002 # Dockerfile for rolisteam-server 0003 # 0004 0005 0006 # Use Debian as base for the build 0007 ARG DEBIAN_VERSION=buster-slim 0008 FROM debian:${DEBIAN_VERSION} AS builder 0009 0010 # Base directory for installed build artifacts. 0011 # Due to limitations of the Docker image build process, this value is 0012 # duplicated in an ARG in the second stage of the build. 0013 # 0014 0015 ARG PREFIX_DIR=/usr/local/rolisteam 0016 0017 # Build arguments 0018 ARG BUILD_DIR=/tmp/rolisteam-docker-BUILD 0019 ARG BUILD_DEPENDENCIES=" \ 0020 qt5-default \ 0021 qtbase5-dev-tools \ 0022 qt5-qmake libqt5network5 \ 0023 zlib1g-dev build-essential \ 0024 git \ 0025 ca-certificates \ 0026 qtmultimedia5-dev \ 0027 libqt5core5a \ 0028 libqt5gui5 \ 0029 qttools5-dev-tools \ 0030 qtdeclarative5-dev \ 0031 qtwebengine5-dev \ 0032 libqt5svg5-dev" 0033 0034 # Bring build environment up to date and install build dependencies 0035 RUN apt-get update && \ 0036 apt-get --no-install-recommends install -y $BUILD_DEPENDENCIES && \ 0037 rm -rf /var/lib/apt/lists/* 0038 0039 RUN mkdir $BUILD_DIR && \ 0040 git -C $BUILD_DIR clone --recursive https://github.com/Rolisteam/rolisteam.git && \ 0041 cd $BUILD_DIR/rolisteam && \ 0042 lrelease rolisteam.pro && \ 0043 qmake -r server/server.pro && \ 0044 make && \ 0045 make install && \ 0046 cd ~ && \ 0047 rm -rf $BUILD_DIR && \ 0048 apt-get -y remove *-dev *dev-tools && \ 0049 apt-get -y autoremove && \ 0050 apt-get -y clean && \ 0051 /usr/local/bin/roliserver -p /opt/default.config 0052 0053 # Expose the default listener port 0054 EXPOSE 6660 0055 0056 CMD /usr/local/bin/roliserver -c /opt/default.config 0057 0058