forked from microsoft/ADBench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (41 loc) · 1.42 KB
/
Dockerfile
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
45
46
47
48
49
50
51
# Using gcc:7.4.0 as base image
FROM gcc:7.4.0
# Install linux packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
wget=1.20.1-1.1 \
python3=3.7.3-1 \
python3-pip=18.1-5 \
cmake=3.13.4-1 \
julia=1.0.3+dfsg-4 \
&& rm -rf /var/lib/apt/lists/*
# Install powershell
WORKDIR /utils/powershell
RUN wget -q https://github.com/PowerShell/PowerShell/releases/download/v6.2.3/powershell-6.2.3-linux-x64.tar.gz \
&& tar -xzf powershell-6.2.3-linux-x64.tar.gz \
# Create a symlink to pwsh
&& ln -s /utils/powershell/pwsh /usr/local/bin \
&& rm powershell-6.2.3-linux-x64.tar.gz
# Install dotnet 2.1
RUN wget -q https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh -c 2.1 \
# Create a symlink to dotnet
&& ln -s ~/.dotnet/dotnet /usr/local/bin
# upgrade pip to be sure that tf>=2.0 could be installed
RUN python3 -m pip install --upgrade pip
# Module for python packages installing
RUN python3 -m pip install pip setuptools>=41.0.0
WORKDIR /adb
# Copy code to /adb (.dockerignore exclude some files)
COPY . .
# Setting workdir for building the project
WORKDIR /adb/build
# Configure and build
RUN cmake -DCMAKE_BUILD_TYPE=release .. \
&& make
WORKDIR /adb/ADBench
RUN sed -i 's/\r//' run-wrapper.sh \
# make wrapper script executable
&& chmod +x run-wrapper.sh
ENTRYPOINT ["./run-wrapper.sh"]