2020-04-02 00:12:08 +02:00
|
|
|
FROM ortools/make:fedora_swig AS env
|
|
|
|
|
RUN dnf -y update \
|
2021-11-29 13:21:23 +01:00
|
|
|
&& dnf -y install python3-devel python3-pip \
|
|
|
|
|
python3-wheel \
|
|
|
|
|
python3-numpy python3-pandas \
|
2020-04-02 00:12:08 +02:00
|
|
|
&& dnf clean all
|
2023-10-27 08:12:55 +02:00
|
|
|
RUN python3 -m pip install absl-py mypy 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
|