Polishing C# Dockerfiles

pull/934/head
Jan Tattermusch 10 years ago
parent d318bba527
commit 0a1d090406
  1. 6
      tools/dockerfile/grpc_csharp_mono/Dockerfile
  2. 3
      tools/dockerfile/grpc_csharp_mono_base/Dockerfile

@ -38,12 +38,8 @@ RUN cd /var/local/git/grpc \
# Install the gRPC C# extension library
RUN make install_grpc_csharp_ext -j12 -C /var/local/git/grpc
# TODO: download NuGet from web. The problem is there seems to be no direct link
# we could use :-)
ADD NuGet.exe NuGet.exe
# Restore the NuGet dependencies
RUN cd /var/local/git/grpc/src/csharp && mono /NuGet.exe restore Grpc.sln
RUN cd /var/local/git/grpc/src/csharp && mono /var/local/NuGet.exe restore Grpc.sln
# Build gRPC solution
RUN cd /var/local/git/grpc/src/csharp && xbuild Grpc.sln

@ -43,6 +43,9 @@ RUN apt-get update && apt-get install -y \
nunit-console \
monodevelop
# Download NuGet
RUN cd /var/local && wget www.nuget.org/NuGet.exe
# Get the source from GitHub
RUN git clone git@github.com:grpc/grpc.git /var/local/git/grpc
RUN cd /var/local/git/grpc && \

Loading…
Cancel
Save