1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- FROM ubuntu:18.04
- ARG BRANCH="master"
- # Set the timezone.
- ENV TZ=UTC
- RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime
- RUN apt-get update \
- && apt-get -y install joe less gnupg ssh wget curl net-tools iputils-ping libncurses5-dev autoconf libncursesw5-dev git locales locales-all mtr-tiny
- ##RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
- ##RUN echo "deb http://download.mono-project.com/repo/ubuntu stable-xenial main" | tee /etc/apt/sources.list.d/mono-official-stable.list
- RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
- RUN echo "deb http://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list
- RUN apt-get update \
- && apt-get -y install mono-devel
- RUN mkdir -p /app
- WORKDIR /app
- RUN git clone --branch v3.5.2 https://github.com/SIPp/sipp.git
- WORKDIR /app/sipp
- RUN ./build.sh
- WORKDIR /app
- RUN git clone -b ${BRANCH} https://git.factoid.org/TFA/TFA-Bot.git
- RUN wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- WORKDIR /app/TFA-Bot
- RUN mono ../nuget.exe restore TFA-Bot.sln
- RUN msbuild -p:Configuration=Release -property:GitCommit=$(git rev-parse HEAD) TFA-Bot.sln
- RUN apt-get clean
- RUN rm -rf /var/lib/apt/lists/*
- COPY entrypoint.sh /entrypoint.sh
- RUN chmod +x /entrypoint.sh
- #ENTRYPOINT ["/bin/bash"]
- ENTRYPOINT ["/entrypoint.sh"]
|