forked from bouncmpe/labs344
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (28 loc) · 924 Bytes
/
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 ghcr.io/bouncmpe/riscv as riscv
FROM ghcr.io/bouncmpe/whisper as whisper
FROM ubuntu:20.04
COPY --from=riscv /opt/riscv /opt/riscv
COPY --from=whisper /opt/SweRV-ISS /opt/SweRV-ISS/bin
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install \
git \
build-essential \
valgrind \
verilator \
gtkwave \
python3 \
python3-pip \
python3-venv \
python-is-python3 \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
## Graphical apps (gtk) complain if we don't set these variables
ENV LANG="C"
ENV LC_ALL="C"
# Update pip and install Python packages
RUN python -m pip install --upgrade pip \
&& python -m pip install \
pycachesim
RUN groupadd students -g 1000 \
&& useradd -ms /bin/bash bouncmpe -g 1000 -u 1000
USER bouncmpe
ENV PATH=$PATH:/home/bouncmpe/.local/bin:/opt/SweRV-ISS/bin:/opt/riscv/bin