File tree Expand file tree Collapse file tree 1 file changed +28
-9
lines changed Expand file tree Collapse file tree 1 file changed +28
-9
lines changed Original file line number Diff line number Diff line change 1
- FROM python:3
1
+ FROM ubuntu:latest
2
2
3
- ADD requirements.txt /
3
+ WORKDIR /home
4
+ RUN apt update && apt-get install
4
5
5
- RUN pip install -r requirements.txt
6
+ # install python3.12
7
+ RUN apt install -y python3 python3-pip python3-venv python3-tk
6
8
7
- ENV WORKSPACE=/workspace
8
- RUN mkdir -p ${WORKSPACE}
9
- VOLUME ${WORKSPACE}
10
- WORKDIR ${WORKSPACE}
9
+ # setup virtaul environment
10
+ ENV VIRTUAL_ENV="/venv"
11
+ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
12
+ ENV FAB_ROOT=/home
13
+ RUN python3 -m venv $VIRTUAL_ENV
11
14
12
- COPY . /workspace/
15
+ # install requirements
16
+ COPY . .
17
+ RUN python3 -m pip install pip --upgrade
18
+ RUN pip3 install -r requirements.txt
13
19
14
- CMD [ "/bin/bash" ]
20
+ # install yosys
21
+ RUN apt install -y yosys
22
+
23
+ # install nextpnr
24
+ RUN apt install -y nextpnr-generic
25
+
26
+ # install ghdl
27
+ RUN apt install -y ghdl
28
+
29
+ # install GTKwave
30
+ RUN apt install -y gtkwave
31
+
32
+ # install icarus
33
+ RUN apt install -y iverilog
You can’t perform that action at this time.
0 commit comments