Files
ortools-clone/makefiles/docker/ubuntu/dotnet.Dockerfile
Corentin Le Molgat 193390c6c0 ubuntu: revert docker to microsoft 21.04 feed for dotnet-sdk
feed 21.10 not available yet
> The .NET 6 packages haven't yet been published for Ubuntu 21.10.
  The following wget command uses the Ubuntu 21.04 repository.
ref: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2110-
2021-12-06 14:47:14 +01:00

27 lines
796 B
Docker

FROM ortools/make:ubuntu_swig AS env
# see: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
RUN apt-get update -qq \
&& apt-get install -yq wget apt-transport-https \
&& wget -q https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq dotnet-sdk-3.1 dotnet-sdk-6.0\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Trigger first run experience by running arbitrary cmd
RUN dotnet --info
FROM env AS devel
WORKDIR /home/project
COPY . .
FROM devel AS build
RUN make third_party
RUN make dotnet
FROM build AS test
RUN make test_dotnet
FROM build AS package
RUN make package_dotnet