Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
HYwooo authored Oct 24, 2024
1 parent d64d6ca commit 76539e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM ubuntu:noble

LABEL org.opencontainers.image.authors="huayangwu" \
LABEL org.opencontainers.image.authors="hywooo" \
org.opencontainers.image.title="bsv-wsl2" \
org.opencontainers.image.description="Docker image for Bluespec SystemVerilog environment on WSL2,compatible with https://github.com/WangXuan95/BSV_Tutorial_cn ." \
org.opencontainers.image.url="https://github.com/HYwooo/Docker-BSV-WSL2" \
org.opencontainers.image.source="https://github.com/HYwooo/Docker-BSV-WSL2" \
org.opencontainers.image.documentation="https://github.com/HYwooo/Docker-BSV-WSL2/blob/main/README.md" \
org.opencontainers.image.documentation="https://github.com/HYwooo/Docker-BSV-WSL2/blob/master/README.md" \
org.opencontainers.image.version="1.0" \
org.opencontainers.image.licenses="MIT"

ENV DISPLAY=host.docker.internal:0.0 LIBGL_ALWAYS_INDIRECT=1

RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/sources.list.d/ubuntu.sources \
&& apt-get update \
Expand All @@ -23,10 +22,12 @@ RUN wget https://github.com/B-Lang-org/bsc/releases/download/2024.07/bsc-2024.07
&& rm bsc-2024.07-ubuntu-24.04.tar.gz \
&& cd /usr && mkdir work && cd /usr/work \
&& git clone https://github.com/WangXuan95/BSV_Tutorial_cn.git \
&& cp /usr/work/BSV_Tutorial_cn/bsvbuild.sh /opt/bsc/bin/
&& cp /usr/work/BSV_Tutorial_cn/bsvbuild.sh /opt/bsc/bin/ && chmod +x /opt/bsc/bin/bsvbuild.sh

ENV PATH=/opt/bsc/bin:$PATH LIBRARY_PATH=/opt/bsc/lib:$LIBRARY_PATH

ENV DISPLAY=host.docker.internal:0.0 LIBGL_ALWAYS_INDIRECT=1

WORKDIR /

ENTRYPOINT ["/bin/bash"]

0 comments on commit 76539e6

Please sign in to comment.