Files
ortools-clone/tools/docker/test/debian-11/python.Dockerfile

22 lines
628 B
Docker
Raw Permalink Normal View History

2022-05-27 18:19:54 +02:00
# ref: https://hub.docker.com/_/debian
FROM debian:11
RUN apt-get update -qq \
&& apt-get install -yq wget build-essential zlib1g-dev \
2022-05-27 18:19:54 +02:00
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENTRYPOINT ["/bin/bash", "-c"]
CMD ["/bin/bash"]
# Install CMake 3.31.0
2022-05-27 18:19:54 +02:00
RUN ARCH=$(uname -m) \
&& wget -q "https://cmake.org/files/v3.31/cmake-3.31.0-linux-${ARCH}.sh" \
&& chmod a+x cmake-3.31.0-linux-${ARCH}.sh \
&& ./cmake-3.31.0-linux-${ARCH}.sh --prefix=/usr/local/ --skip-license \
&& rm cmake-3.31.0-linux-${ARCH}.sh
2022-05-27 18:19:54 +02:00
WORKDIR /root
ADD or-tools_amd64_debian-11_python_v*.tar.gz .
RUN cd or-tools_*_v* && make test