Files
ortools-clone/makefiles/docker/ubuntu/dotnet.Dockerfile
2024-05-30 10:52:46 +02:00

24 lines
508 B
Docker

FROM ortools/make:ubuntu_swig AS env
# Install .Net
# see: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
RUN apt-get update -qq \
&& apt-get install -yq dotnet-sdk-8.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 dotnet
FROM build AS test
RUN make test_dotnet
FROM build AS package
RUN make package_dotnet