2020-04-02 00:12:08 +02:00
|
|
|
FROM ortools/make:archlinux_swig AS env
|
2023-06-15 17:19:15 +02:00
|
|
|
RUN pacman -Syu --noconfirm python python-pip \
|
|
|
|
|
python-wheel python-virtualenv \
|
|
|
|
|
python-numpy python-pandas
|
|
|
|
|
RUN python -m pip install --break-system-package \
|
|
|
|
|
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
|