28 lines
893 B
Docker
28 lines
893 B
Docker
FROM ubuntu:19.10
|
|
|
|
RUN apt-get update -qq \
|
|
&& apt-get install -yq build-essential zlib1g-dev \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
# Dotnet install
|
|
# see https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1904
|
|
RUN apt-get update -qq \
|
|
&& apt-get install -yq wget apt-transport-https \
|
|
&& wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb \
|
|
&& dpkg -i packages-microsoft-prod.deb \
|
|
&& apt-get update -qq \
|
|
&& apt-get install -yq dotnet-sdk-3.1 \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
# 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_ubuntu-19.10_v*.tar.gz .
|
|
|
|
RUN cd or-tools_*_v* && make test_dotnet
|