Skip to content

Commit 6189308

Browse files
Update docker file
1 parent 77ff8e6 commit 6189308

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

Dockerfile

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
1-
FROM python:3
1+
FROM ubuntu:latest
22

3-
ADD requirements.txt /
3+
WORKDIR /home
4+
RUN apt update && apt-get install
45

5-
RUN pip install -r requirements.txt
6+
# install python3.12
7+
RUN apt install -y python3 python3-pip python3-venv python3-tk
68

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
1114

12-
COPY . /workspace/
15+
# install requirements
16+
COPY . .
17+
RUN python3 -m pip install pip --upgrade
18+
RUN pip3 install -r requirements.txt
1319

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

0 commit comments

Comments
 (0)