Files
ortools-clone/tools/docker/test/opensuse-leap/python.Dockerfile

23 lines
595 B
Docker
Raw Normal View History

2022-05-27 18:19:54 +02:00
# 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 make \
&& zypper clean -a
ENV CC=gcc-11 CXX=g++-11
ENTRYPOINT ["/usr/bin/bash", "-c"]
CMD ["/usr/bin/bash"]
# Python Install
RUN zypper install -y python3-devel python3-pip python3-wheel \
&& zypper clean -a
2023-10-27 08:13:15 +02:00
RUN python3 -m pip install absl-py mypy mypy-protobuf
2022-05-27 18:19:54 +02:00
WORKDIR /root
ADD or-tools_amd64_opensuse-leap_python_v*.tar.gz .
RUN cd or-tools_*_v* && make test