-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.manylinux2010
executable file
·44 lines (38 loc) · 1.85 KB
/
Dockerfile.manylinux2010
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM quay.io/pypa/manylinux2010_x86_64
LABEL maintainer="Subin Modeel <smodeel@redhat.com>"
USER root
ENV JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0*" \
PLATFORM="el6" \
PATH=/root/bin:$PATH
ENV BASH_ENV="/usr/bin/scl_enable" \
ENV="/usr/bin/scl_enable" \
PROMPT_COMMAND=". /usr/bin/scl_enable"
RUN yum install -y centos-release-scl unzip vim wget cmake3 doxygen ccache sudo \
&& yum install -y devtoolset-7 rh-python36 \
&& yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel \
&& wget -q https://github.com/sub-mod/bazel-builds/releases/download/0.24.1/bazel-0.24.1 \
&& mv bazel-0.24.1 bazel \
&& chmod a+x bazel \
&& mv bazel /usr/bin \
&& wget -q https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh \
&& chmod a+x script.rpm.sh \
&& ./script.rpm.sh \
&& rm -fr script.rpm.sh \
&& yum install -y git-lfs
RUN source scl_source enable devtoolset-7 rh-python36 \
&& gcc --version \
&& python -V \
&& cmake3 --version \
&& pip install --upgrade pip \
&& pip3 install scipy jupyter matplotlib Pillow scikit-learn protobuf termcolor grpcio \
&& pip3 install mock gast backports.weakref astor absl-py futures pytest pytest-xdist Keras-Applications==1.0.8 Keras-Preprocessing==1.1.0 wheel
# start the container with gcc-7 and py3.6
RUN echo "unset BASH_ENV PROMPT_COMMAND ENV" > /usr/bin/scl_enable \
&& echo "echo 'using user scl_enable script'" >> /usr/bin/scl_enable \
&& echo "source scl_source enable rh-python36 devtoolset-7" >> /usr/bin/scl_enable \
&& echo "JAVA_HOME='/usr/lib/jvm/java-1.8.0-openjdk-1.8.0*'" >> /usr/bin/scl_enable \
&& echo "FULL_JAVA_HOME=$(readlink -f $JAVA_HOME)" >> /usr/bin/scl_enable \
&& echo "export JAVA_HOME=\$FULL_JAVA_HOME" >> /usr/bin/scl_enable
RUN chmod a+x /usr/bin/scl_enable
# Switch to the user
USER 1001