Skip to content

Commit

Permalink
Update docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinChung2000 committed Jul 31, 2024
1 parent 77ff8e6 commit 6189308
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
FROM python:3
FROM ubuntu:latest

ADD requirements.txt /
WORKDIR /home
RUN apt update && apt-get install

RUN pip install -r requirements.txt
# install python3.12
RUN apt install -y python3 python3-pip python3-venv python3-tk

ENV WORKSPACE=/workspace
RUN mkdir -p ${WORKSPACE}
VOLUME ${WORKSPACE}
WORKDIR ${WORKSPACE}
# setup virtaul environment
ENV VIRTUAL_ENV="/venv"
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
ENV FAB_ROOT=/home
RUN python3 -m venv $VIRTUAL_ENV

COPY . /workspace/
# install requirements
COPY . .
RUN python3 -m pip install pip --upgrade
RUN pip3 install -r requirements.txt

CMD [ "/bin/bash"]
# install yosys
RUN apt install -y yosys

#install nextpnr
RUN apt install -y nextpnr-generic

#install ghdl
RUN apt install -y ghdl

# install GTKwave
RUN apt install -y gtkwave

# install icarus
RUN apt install -y iverilog

0 comments on commit 6189308

Please sign in to comment.