Files
ortools-clone/bazel/docker/archlinux/Dockerfile
Corentin Le Molgat 505d7f34be bazel(ci): Fix docker
2024-07-17 15:42:12 +02:00

29 lines
626 B
Docker

# Create a virtual environment with all tools installed
# ref: https://hub.docker.com/_/archlinux/
FROM archlinux:latest AS env
# Install system build dependencies
ENV PATH=/usr/local/bin:$PATH
RUN pacman -Syu --noconfirm git base-devel bazel
# Install Python
RUN pacman -Syu --noconfirm python python-pip python-setuptools \
python-numpy python-pandas
FROM env AS devel
WORKDIR /home/project
COPY . .
FROM devel AS build
RUN bazel version
RUN bazel build \
-c opt \
--subcommands=true \
//ortools/... //examples/...
FROM build AS test
RUN bazel test \
-c opt \
--test_output=errors \
//ortools/... //examples/...