generated from chipsalliance/chisel-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (34 loc) · 1.13 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
# Use the official Ubuntu base image
FROM ubuntu:22.04
# Set environment variables to non-interactive to avoid prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update && \
apt-get install -y git help2man perl make autoconf g++ flex bison ccache libgoogle-perftools-dev numactl perl-doc && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install dependencies
RUN apt-get update && \
apt-get install -y python3.10 python3-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install cocotb and cocotb-bus
RUN pip install cocotb==1.8.1 cocotb-bus
# Install latest reed-solo
RUN pip install --upgrade reedsolo
# Install Verilator
RUN git clone https://github.com/verilator/verilator.git && \
cd verilator && \
git checkout v5.022 && \
autoconf && \
./configure && \
make -j$(nproc) && \
make install && \
cd .. && \
rm -rf verilator
# Set the working directory
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Default command
CMD ["bash"]# Use an official Debian runtime as a parent image