mirror of https://github.com/YosysHQ/yosys.git
41 lines
1.0 KiB
Docker
41 lines
1.0 KiB
Docker
FROM ubuntu:18.04 as builder
|
|
LABEL author="Abdelrahman Hosny <abdelrahman.hosny@hotmail.com>"
|
|
RUN apt-get update -qq \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
|
|
ca-certificates \
|
|
clang \
|
|
bison \
|
|
build-essential \
|
|
flex \
|
|
gawk \
|
|
git \
|
|
libffi-dev \
|
|
libreadline-dev \
|
|
pkg-config \
|
|
python3 \
|
|
tcl-dev \
|
|
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
|
|
&& update-ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists
|
|
|
|
COPY . /
|
|
RUN make && \
|
|
make install
|
|
|
|
FROM ubuntu:18.04
|
|
RUN apt-get update -qq \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
|
|
libreadline-dev \
|
|
tcl-dev
|
|
|
|
COPY --from=builder /yosys /build/yosys
|
|
COPY --from=builder /yosys-abc /build/yosys-abc
|
|
COPY --from=builder /yosys-config /build/yosys-config
|
|
COPY --from=builder /yosys-filterlib /build/yosys-filterlib
|
|
COPY --from=builder /yosys-smtbmc /build/yosys-smtbmc
|
|
|
|
ENV PATH /build:$PATH
|
|
RUN useradd -m yosys
|
|
USER yosys
|
|
ENTRYPOINT ["yosys"]
|