tools/docker: add mypy package
This commit is contained in:
@@ -46,7 +46,7 @@ RUN apk add --no-cache openjdk8 maven
|
||||
RUN apk add --no-cache python3-dev py3-pip py3-wheel \
|
||||
py3-numpy py3-pandas py3-matplotlib py3-scipy
|
||||
RUN rm -f /usr/lib/python3.*/EXTERNALLY-MANAGED \
|
||||
&& python3 -m pip install absl-py mypy-protobuf
|
||||
&& python3 -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
################
|
||||
## OR-TOOLS ##
|
||||
|
||||
@@ -27,7 +27,7 @@ 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
|
||||
absl-py mypy mypy-protobuf
|
||||
|
||||
################
|
||||
## OR-TOOLS ##
|
||||
|
||||
@@ -69,7 +69,7 @@ RUN yum -y update \
|
||||
&& yum clean all \
|
||||
&& rm -rf /var/cache/yum \
|
||||
&& echo "source /opt/rh/rh-python38/enable" >> /etc/bashrc
|
||||
RUN python -m pip install absl-py mypy-protobuf
|
||||
RUN python -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
ENV TZ=America/Los_Angeles
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
@@ -46,7 +46,7 @@ RUN apt-get update -qq \
|
||||
&& apt-get install -qq python3 python3-dev python3-pip python3-venv \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
RUN python3 -m pip install absl-py mypy-protobuf
|
||||
RUN python3 -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
ENV TZ=America/Los_Angeles
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
@@ -46,7 +46,7 @@ RUN apt-get update -qq \
|
||||
&& apt-get install -qq python3 python3-dev python3-pip python3-venv \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
RUN python3 -m pip install absl-py mypy-protobuf
|
||||
RUN python3 -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
ENV TZ=America/Los_Angeles
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
@@ -44,7 +44,7 @@ RUN apt-get update -qq \
|
||||
python3-venv python3-virtualenv \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
RUN python3 -m pip install --break-system-package absl-py mypy-protobuf
|
||||
RUN python3 -m pip install --break-system-package absl-py mypy mypy-protobuf
|
||||
|
||||
ENV TZ=America/Los_Angeles
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
@@ -36,7 +36,7 @@ ENV JAVA_HOME=/usr/lib/jvm/java-openjdk
|
||||
RUN dnf -y update \
|
||||
&& dnf -y install python3 python3-devel python3-pip \
|
||||
&& dnf clean all
|
||||
RUN python3 -m pip install absl-py mypy-protobuf
|
||||
RUN python3 -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
################
|
||||
## OR-TOOLS ##
|
||||
|
||||
@@ -36,7 +36,7 @@ ENV JAVA_HOME=/usr/lib/jvm/java-openjdk
|
||||
RUN dnf -y update \
|
||||
&& dnf -y install python3 python3-devel python3-pip \
|
||||
&& dnf clean all
|
||||
RUN python3 -m pip install absl-py mypy-protobuf
|
||||
RUN python3 -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
################
|
||||
## OR-TOOLS ##
|
||||
|
||||
@@ -36,7 +36,7 @@ ENV JAVA_HOME=/usr/lib/jvm/java-openjdk
|
||||
RUN dnf -y update \
|
||||
&& dnf -y install python3 python3-devel python3-pip \
|
||||
&& dnf clean all
|
||||
RUN python3 -m pip install absl-py mypy-protobuf
|
||||
RUN python3 -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
################
|
||||
## OR-TOOLS ##
|
||||
|
||||
@@ -59,7 +59,7 @@ RUN zypper install -y java-1_8_0-openjdk java-1_8_0-openjdk-devel maven \
|
||||
# Install Python
|
||||
RUN zypper install -y python311-devel python311-pip \
|
||||
&& zypper clean -a
|
||||
RUN python3.11 -m pip install absl-py mypy-protobuf
|
||||
RUN python3.11 -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
################
|
||||
## OR-TOOLS ##
|
||||
|
||||
@@ -51,7 +51,7 @@ RUN apt-get update -qq \
|
||||
&& apt-get install -qq python3 python3-dev python3-pip python3-venv \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
RUN python3 -m pip install absl-py mypy-protobuf
|
||||
RUN python3 -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
ENV TZ=America/Los_Angeles
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
@@ -42,7 +42,7 @@ RUN apt-get update -qq \
|
||||
&& apt-get install -qq python3 python3-dev python3-pip python3-venv \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
RUN python3 -m pip install absl-py mypy-protobuf
|
||||
RUN python3 -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
ENV TZ=America/Los_Angeles
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
@@ -12,7 +12,7 @@ RUN apk add --no-cache make
|
||||
RUN apk add --no-cache python3-dev py3-pip py3-wheel \
|
||||
py3-numpy py3-pandas py3-matplotlib py3-scipy
|
||||
RUN rm -f /usr/lib/python3.*/EXTERNALLY-MANAGED \
|
||||
&& python3 -m pip install absl-py mypy-protobuf
|
||||
&& python3 -m pip install absl-py mypy mypy-protobuf
|
||||
ENTRYPOINT ["/bin/sh", "-c"]
|
||||
CMD ["/bin/sh"]
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ CMD [ "/bin/bash" ]
|
||||
|
||||
# Install Python
|
||||
RUN pacman -Syu --noconfirm python python-pip python-numpy
|
||||
RUN python -m pip install absl-py mypy-protobuf
|
||||
RUN python -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
WORKDIR /root
|
||||
ADD or-tools_amd64_alpine-edge_python_v*.tar.gz .
|
||||
|
||||
@@ -14,7 +14,7 @@ CMD ["/usr/bin/bash"]
|
||||
# Python Install
|
||||
RUN zypper install -y python3-devel python3-pip python3-wheel \
|
||||
&& zypper clean -a
|
||||
RUN python3 -m pip install absl-py mypy-protobuf
|
||||
RUN python3 -m pip install absl-py mypy mypy-protobuf
|
||||
|
||||
WORKDIR /root
|
||||
ADD or-tools_amd64_opensuse-leap_python_v*.tar.gz .
|
||||
|
||||
Reference in New Issue
Block a user