33 lines
1.0 KiB
Docker
33 lines
1.0 KiB
Docker
# Create a virtual environment with all tools installed
|
|
# ref: https://hub.docker.com/r/opensuse/leap
|
|
FROM opensuse/leap
|
|
|
|
# Install system build dependencies
|
|
ENV PATH=/usr/local/bin:$PATH
|
|
RUN zypper refresh \
|
|
&& zypper install -y git gcc gcc-c++ \
|
|
wget which lsb-release util-linux pkgconfig autoconf libtool zlib-devel \
|
|
&& zypper clean -a
|
|
ENV CC=gcc CXX=g++
|
|
ENTRYPOINT ["/usr/bin/bash", "-c"]
|
|
CMD ["/usr/bin/bash"]
|
|
|
|
# .Net Install
|
|
RUN zypper refresh \
|
|
&& zypper install -y wget tar gzip libicu-devel
|
|
# see: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
|
|
RUN wget -q "https://dot.net/v1/dotnet-install.sh" \
|
|
&& chmod a+x dotnet-install.sh \
|
|
&& ./dotnet-install.sh -c 3.1 -i /usr/local/bin \
|
|
&& ./dotnet-install.sh -c 8.0 -i /usr/local/bin
|
|
# 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_amd64_opensuse-leap_v*.tar.gz .
|
|
|
|
RUN cd or-tools_*_v* && make test_dotnet
|