blob: 347e3ebc75bfffa6c0ed70d80d220f243da9b8a5 (
plain) (
blame)
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
|
FROM debian:bookworm-slim
ARG OSS_CAD_DATE=20260310
ARG OSS_CAD_VERSION=2026-03-10
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
ca-certificates \
libusb-1.0-0 \
make \
gcc \
libc6-dev \
zlib1g-dev \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN curl -L \
"https://github.com/YosysHQ/oss-cad-suite-build/releases/download/${OSS_CAD_VERSION}/oss-cad-suite-linux-x64-${OSS_CAD_DATE}.tgz" \
| tar -xz -C /opt
ENV PATH="/opt/oss-cad-suite/bin:$PATH"
# pyGHDL ships ghdl-ls (verified from ghdl/ghdl setup.py)
# pyGHDL into system python (for ghdl-ls)
RUN pip3 install --break-system-packages pyGHDL
# numpy/fastcrc into OSS CAD Suite's site-packages (used by apycula/gowin_pack)
RUN pip3 install --target=/opt/oss-cad-suite/lib/python3.11/site-packages numpy fastcrc
WORKDIR /workspace
|