Files
ortools-clone/tools/docker/test/alpine-edge/python.Dockerfile

23 lines
588 B
Docker
Raw Permalink Normal View History

2022-05-27 18:19:54 +02:00
# Create a virtual environment with all tools installed
# ref: https://hub.docker.com/_/alpine
FROM alpine:edge AS env
#############
## SETUP ##
#############
ENV PATH=/usr/local/bin:$PATH
RUN apk add --no-cache make
# Install Python
2023-02-03 16:15:05 +01:00
RUN apk add --no-cache python3-dev py3-pip py3-wheel \
py3-numpy py3-pandas py3-matplotlib py3-scipy
2023-02-06 13:11:25 +01:00
RUN rm -f /usr/lib/python3.*/EXTERNALLY-MANAGED \
2023-10-27 08:13:15 +02:00
&& python3 -m pip install absl-py mypy mypy-protobuf
2022-05-27 18:19:54 +02:00
ENTRYPOINT ["/bin/sh", "-c"]
CMD ["/bin/sh"]
WORKDIR /root
ADD or-tools_amd64_alpine-edge_python_v*.tar.gz .
RUN cd or-tools_*_v* && make test