Files
ortools-clone/makefiles/docker/debian/Dockerfile
Mizux Seiha 590471becf cmake bump to 3.25.2
dev Note:

git ls-files -z | xargs -0 sed -i -e 's;CMake 3\.2[0-9]\.[0-9]\+;CMake 3.25.2;g'
git ls-files -z | xargs -0 sed -i -e 's;cmake-3\.2[0-9]\.[0-9];cmake-3.25.2;g'
git ls-files -z | xargs -0 sed -i -e 's;/v3\.2[0-9]/cmake-3\.2[0-9]\.[0-9];/v3.25/cmake-3.25.2;g'
2023-02-02 19:02:56 +01:00

25 lines
811 B
Docker

# Create a virtual environment with all tools installed
# ref: https://hub.docker.com/_/debian
FROM debian:latest AS base
# Install system build dependencies
ENV PATH=/usr/local/bin:$PATH
RUN apt-get update -qq \
&& apt-get install -yq \
git wget libssl-dev pkg-config build-essential \
autoconf libtool zlib1g-dev lsb-release \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install CMake 3.25.2
RUN wget -q "https://cmake.org/files/v3.25/cmake-3.25.2-linux-x86_64.sh" \
&& chmod a+x cmake-3.25.2-linux-x86_64.sh \
&& ./cmake-3.25.2-linux-x86_64.sh --prefix=/usr/local/ --skip-license \
&& rm cmake-3.25.2-linux-x86_64.sh
CMD [ "/bin/bash" ]
FROM base AS swig
RUN apt-get update -qq \
&& apt-get install -yq swig \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*