2020-04-02 00:12:08 +02:00
|
|
|
FROM ortools/make:opensuse_swig AS env
|
2022-05-30 11:00:17 +02:00
|
|
|
RUN zypper refresh \
|
2021-11-29 13:21:14 +01:00
|
|
|
&& zypper install -y python3-devel python3-pip \
|
|
|
|
|
python3-wheel \
|
|
|
|
|
python3-numpy python3-pandas \
|
2020-04-02 00:12:08 +02:00
|
|
|
&& zypper clean -a
|
2020-11-30 21:12:51 +01:00
|
|
|
RUN python3 -m pip install absl-py mypy-protobuf
|
2020-04-02 00:12:08 +02:00
|
|
|
|
|
|
|
|
FROM env AS devel
|
2020-04-13 17:48:44 +02:00
|
|
|
WORKDIR /home/project
|
2020-04-02 00:12:08 +02:00
|
|
|
COPY . .
|
|
|
|
|
|
|
|
|
|
FROM devel AS build
|
|
|
|
|
RUN make python
|
|
|
|
|
|
|
|
|
|
FROM build AS test
|
|
|
|
|
RUN make test_python
|
|
|
|
|
|
|
|
|
|
FROM build AS package
|
|
|
|
|
RUN make package_python
|