forked from shadaj/scalapy-tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.bench
36 lines (28 loc) · 1.23 KB
/
Dockerfile.bench
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
FROM debian:buster-slim
# Prerequisites of Scala Native
RUN set -x \
&& apt-get update \
&& apt-get install -y clang libre2-dev libunwind-dev
RUN set -x \
`# workaround for error in debian-slim during openjdk installation` \
&& mkdir -p /usr/share/man/man1 \
&& apt-get install --no-install-recommends -y curl git gnupg openjdk-11-jre-headless python3
RUN set -x \
&& echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list \
&& curl -fsL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | apt-key add \
&& apt-get update \
&& apt-get install -y sbt
RUN set -x \
&& apt-get install --no-install-recommends -y build-essential python3-dev python3-pip
RUN set -x \
&& apt-get install --no-install-recommends -y vim wget
RUN set -x \
&& wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh \
&& bash ~/miniconda.sh -b -p ~/miniconda \
&& . ~/miniconda/bin/activate \
&& conda install --yes --quiet python=3.7 \
&& conda install --yes --quiet tensorflow=2.2.0 \
&& conda install --yes --quiet numpy=1.18.5 \
&& rm ~/miniconda.sh
RUN set -x \
&& echo ". ~/miniconda/bin/activate" >> /etc/bash.bashrc