Dockerfile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM debian:buster
  2. # Install dependencies. We start with the basic ones require to build protoc
  3. # and the C++ build
  4. RUN apt-get update && apt-get install -y \
  5. autoconf \
  6. autotools-dev \
  7. build-essential \
  8. bzip2 \
  9. ccache \
  10. curl \
  11. gcc \
  12. git \
  13. libc6 \
  14. libc6-dbg \
  15. libc6-dev \
  16. libgtest-dev \
  17. libtool \
  18. make \
  19. parallel \
  20. time \
  21. wget \
  22. && apt-get clean
  23. # Update ca-certificates to fix known buster + .NET 5 issue
  24. # https://github.com/NuGet/Announcements/issues/49
  25. RUN apt-get update && apt-get install -y ca-certificates && apt-get clean
  26. # dotnet SDK prerequisites
  27. RUN apt-get update && apt-get install -y libunwind8 libicu63 && apt-get clean
  28. # Install dotnet SDK via install script
  29. RUN wget -q https://dot.net/v1/dotnet-install.sh && \
  30. chmod u+x dotnet-install.sh && \
  31. ./dotnet-install.sh --version 2.1.802 && \
  32. ./dotnet-install.sh --version 5.0.102 && \
  33. ln -s /root/.dotnet/dotnet /usr/local/bin
  34. RUN wget -q www.nuget.org/NuGet.exe -O /usr/local/bin/nuget.exe
  35. ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE true