-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a40294
commit 0a94441
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |