-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (32 loc) · 1.09 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
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive \
HOME=/root
SHELL ["/bin/bash", "-c"]
# Configure multi-programming language environment
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list \
&& apt-get update \
# Install packages for compilation and repositories
&& apt-get install -y build-essential curl \
# Install general packages
## C
&& apt-get install -y gcc \
## Go
&& apt-get install -y golang-go \
## Fortran
&& apt-get install -y gfortran \
## Julia
&& apt-get install -y julia \
## Python
&& apt-get install -y python3 python3-numpy python3-numba \
## Rust
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& echo 'source $HOME/.cargo/env' >> $HOME/.bashrc \
&& source $HOME/.cargo/env \
# Install Benchmarking tool(s)
&& cargo install hyperfine \
# Erase downloaded archive files
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY Makefile $HOME/burger.bench/
COPY burger/ $HOME/burger.bench/burger/
COPY script/ $HOME/burger.bench/script/