Dockerfile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. FROM ubuntu:18.04
  2. ARG BRANCH="master"
  3. # Set the timezone.
  4. ENV TZ=UTC
  5. RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime
  6. RUN apt-get update \
  7. && 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
  8. ##RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
  9. ##RUN echo "deb http://download.mono-project.com/repo/ubuntu stable-xenial main" | tee /etc/apt/sources.list.d/mono-official-stable.list
  10. RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
  11. RUN echo "deb http://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list
  12. RUN apt-get update \
  13. && apt-get -y install mono-devel
  14. RUN mkdir -p /app
  15. WORKDIR /app
  16. RUN git clone --branch v3.5.2 https://github.com/SIPp/sipp.git
  17. WORKDIR /app/sipp
  18. RUN ./build.sh
  19. WORKDIR /app
  20. RUN git clone -b ${BRANCH} https://git.factoid.org/TFA/TFA-Bot.git
  21. RUN wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
  22. WORKDIR /app/TFA-Bot
  23. RUN mono ../nuget.exe restore TFA-Bot.sln
  24. RUN msbuild -p:Configuration=Release -property:GitCommit=$(git rev-parse HEAD) TFA-Bot.sln
  25. RUN apt-get clean
  26. RUN rm -rf /var/lib/apt/lists/*
  27. COPY entrypoint.sh /entrypoint.sh
  28. RUN chmod +x /entrypoint.sh
  29. #ENTRYPOINT ["/bin/bash"]
  30. ENTRYPOINT ["/entrypoint.sh"]