Skip to content

Commit

Permalink
dockerize yosys
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelrahmanhosny committed Feb 27, 2019
1 parent 7a40294 commit 0a94441
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM ubuntu:16.04 as builder
LABEL author="Abdelrahman Hosny <[email protected]>"

RUN apt-get update && apt-get install -y build-essential \
clang \
bison \
flex \
libreadline-dev \
gawk \
tcl-dev \
libffi-dev \
git \
graphviz \
xdot \
pkg-config \
python3

COPY . /
RUN make && \
make install


FROM ubuntu:16.04
RUN apt-get update && apt-get install -y clang \
bison \
flex \
libreadline-dev \
gawk \
tcl-dev \
libffi-dev \
git \
graphviz \
xdot \
pkg-config \
python3
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 mkdir /data
WORKDIR /data

ENTRYPOINT ["yosys"]

0 comments on commit 0a94441

Please sign in to comment.