Files
ortools-clone/tools/docker/test/centos-8/dotnet.Dockerfile
2020-05-04 17:28:52 +02:00

26 lines
675 B
Docker

FROM centos:8
LABEL maintainer="corentinl@google.com"
RUN dnf -y update \
&& dnf -y groupinstall 'Development Tools' \
&& dnf -y install zlib-devel \
&& dnf clean all \
&& rm -rf /var/cache/dnf
# Install dotnet
# see https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-centos8
RUN dnf -y update \
&& dnf -y install dotnet-sdk-3.1 \
&& dnf clean all \
&& rm -rf /var/cache/dnf
# Trigger first run experience by running arbitrary cmd
RUN dotnet --info
#ENV TZ=America/Los_Angeles
#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /root
ADD or-tools_centos-8_v*.tar.gz .
RUN cd or-tools_*_v* && make test_dotnet