-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
109 lines (101 loc) · 2.19 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
FROM debian:bookworm
ENV INST 'env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends'
ENV PIPINST 'python3 -m pip install --no-cache-dir --upgrade'
RUN apt-get update && $INST \
autoconf \
automake \
build-essential \
ccache \
clang \
clang-format \
clang-tidy \
cmake \
coreutils \
curl \
device-tree-compiler \
dfu-util \
expect \
fd-find \
ffmpeg \
file \
fonts-lato \
g++ \
gcc \
gcc-multilib \
git \
git-lfs \
g++-multilib \
gperf \
gtk-sharp2 \
jq \
libeigen3-dev \
libevent-dev \
libftdi1-dev \
libglfw3 \
libglfw3-dev \
libglib2.0-0 \
libgomp1 \
libgtk2.0-dev \
libjson-c-dev \
libopenblas-dev \
libprotoc-dev \
libpython3-dev \
libtinfo5 \
libtinfo-dev \
libtool \
libusb-1.0.0-dev \
llvm \
llvm-dev \
make \
mono-complete \
mono-devel \
ninja-build \
openocd \
picocom \
policykit-1 \
procps \
protobuf-compiler \
python3 \
python3-dev \
python3-opencv \
python3-pip \
python3-venv \
software-properties-common \
sudo \
tar \
tmux \
uml-utilities \
unzip \
verilator \
vim \
wget \
xxd \
xz-utils \
zip \
&& apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN rm /usr/lib/python3.11/EXTERNALLY-MANAGED
RUN $PIPINST pip setuptools PyYAML cmake flit_core
RUN $PIPINST \
amaranth-yosys \
cffi \
cloudpickle \
flake8 \
numpy \
opencv-python \
pre-commit \
psutil \
pydocstyle \
pyelftools \
pyserial \
pytest \
tornado \
tqdm \
west \
ruff
COPY requirements.txt /tmp/requirements.txt
RUN $PIPINST -r /tmp/requirements.txt
RUN cd / \
&& wget https://static.dev.sifive.com/dev-tools/freedom-tools/v2020.08/riscv64-unknown-elf-gcc-10.1.0-2020.08.2-x86_64-linux-ubuntu14.tar.gz \
&& tar xvzf /riscv64-unknown-elf-gcc-10.1.0-2020.08.2-x86_64-linux-ubuntu14.tar.gz \
&& rm /riscv64-unknown-elf-gcc-10.1.0-2020.08.2-x86_64-linux-ubuntu14.tar.gz
ENV PATH="${PATH}:/riscv64-unknown-elf-gcc-10.1.0-2020.08.2-x86_64-linux-ubuntu14/bin"