yosys/Dockerfile

34 lines
853 B
Docker
Raw Normal View History

2019-03-01 19:06:43 -06:00
FROM ubuntu:18.04 as builder
2019-02-26 19:53:31 -06:00
LABEL author="Abdelrahman Hosny <abdelrahman.hosny@hotmail.com>"
2019-03-01 19:06:43 -06:00
ENV DEBIAN_FRONTEND=noninteractive
2019-02-26 19:53:31 -06:00
RUN apt-get update && apt-get install -y build-essential \
clang \
bison \
flex \
libreadline-dev \
gawk \
tcl-dev \
libffi-dev \
git \
pkg-config \
2019-03-01 19:06:43 -06:00
python3 && \
rm -rf /var/lib/apt/lists
2019-02-26 19:53:31 -06:00
COPY . /
RUN make && \
make install
2019-03-01 19:06:43 -06:00
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y libreadline-dev tcl-dev
2019-02-26 19:53:31 -06:00
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
2019-03-01 19:06:43 -06:00
RUN useradd -m yosys
USER yosys
2019-02-26 19:53:31 -06:00
ENTRYPOINT ["yosys"]