Files
Corentin Le Molgat 5f1d9d4569 backport tools/docker from main
* Remove Debian 10
* Fix Debian 11, 12, 13
* Remove Fedora 37, 38, 39
* Add Fedora 40, 41
* Remove Ubuntu 23.04, 23.10
* Add Ubuntu 24.10
2024-11-12 14:57:39 +01:00

19 lines
543 B
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 make gcc11 gcc11-c++ cmake \
wget which lsb-release util-linux pkgconfig autoconf libtool zlib-devel gzip \
&& zypper clean -a
ENV CC=gcc-11 CXX=g++-11
ENTRYPOINT ["/usr/bin/bash", "-c"]
CMD ["/usr/bin/bash"]
WORKDIR /root
ADD or-tools_amd64_opensuse-leap_cpp_v*.tar.gz .
RUN cd or-tools_*_v* && make test