aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdelrahman <abdelrahman@brown.edu>2019-02-26 20:53:31 -0500
committerAbdelrahman <abdelrahman@brown.edu>2019-02-26 20:53:31 -0500
commit0a94441579f25f3661071692d2290c5c3b224a6a (patch)
tree9b3160f2f07b0c9e0bd50a463835ae06f03b3b5d
parent7a40294e93490fa462343244b1e2881c3c249c3f (diff)
downloadyosys-0a94441579f25f3661071692d2290c5c3b224a6a.tar.gz
yosys-0a94441579f25f3661071692d2290c5c3b224a6a.tar.bz2
yosys-0a94441579f25f3661071692d2290c5c3b224a6a.zip
dockerize yosys
-rw-r--r--Dockerfile47
1 files changed, 47 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..3a4358335
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,47 @@
+FROM ubuntu:16.04 as builder
+LABEL author="Abdelrahman Hosny <abdelrahman.hosny@hotmail.com>"
+
+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"]