-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
71 lines (67 loc) · 1.99 KB
/
Dockerfile
File metadata and controls
71 lines (67 loc) · 1.99 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# official codercom/code-server is based on debian:bookworm, but we prefer ubuntu
FROM lscr.io/linuxserver/code-server:4.103.2
# install dependencies for XiangShan
RUN apt-get update && \
apt-get install -y --no-install-recommends \
# tools
git \
tree \
time \
curl \
gawk \
# build toolchain
autoconf \
build-essential \
make \
cmake \
flex \
bison \
m4 \
scons \
verilator \
clang \
llvm \
mold \
pkg-config \
python3-pip \
device-tree-compiler \
gcc \
g++ \
gcc-riscv64-linux-gnu \
# runtime
openjdk-21-jre \
# libraries
libc6-dev-riscv64-cross \
libreadline6-dev \
libsdl2-dev \
zlib1g \
zlib1g-dev \
sqlite3 \
libsqlite3-dev \
zstd \
libzstd-dev \
protobuf-compiler \
libprotobuf-dev \
libprotoc-dev \
libgoogle-perftools-dev \
libboost-all-dev \
&& \
apt-get clean
# install mill
RUN curl -L https://repo1.maven.org/maven2/com/lihaoyi/mill-dist/1.0.4/mill-dist-1.0.4-mill.sh -o /usr/bin/mill && \
chmod +x /usr/bin/mill
# install jupyter
RUN python3 -m pip install --break-system-packages \
jupyter \
notebook \
# for performance analysis scripts
matplotlib \
numpy \
pandas \
scipy
# install extensions for code-server
RUN mkdir -p /config/extensions && \
/app/code-server/bin/code-server --extensions-dir /config/extensions --install-extension ms-python.python && \
/app/code-server/bin/code-server --extensions-dir /config/extensions --install-extension ms-toolsai.jupyter && \
/app/code-server/bin/code-server --extensions-dir /config/extensions --install-extension scalameta.metals && \
/app/code-server/bin/code-server --extensions-dir /config/extensions --install-extension lramseyer.vaporview