diff options
author | Serge Bazanski <q3k@q3k.org> | 2019-06-13 12:14:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-13 12:14:37 +0200 |
commit | d4f77d408c754285969969bda3a6985c1fbe9fb6 (patch) | |
tree | 75fb886967308d165f6dbf58ea006d63f8c4678a /Dockerfile | |
parent | a91ea6612a73568782c80bd12ce2875353e2b5c5 (diff) | |
parent | ed358b237b597f2198c6e354e7c4084faf769d3a (diff) | |
download | yosys-d4f77d408c754285969969bda3a6985c1fbe9fb6.tar.gz yosys-d4f77d408c754285969969bda3a6985c1fbe9fb6.tar.bz2 yosys-d4f77d408c754285969969bda3a6985c1fbe9fb6.zip |
Merge pull request #829 from abdelrahmanhosny/master
Dockerfile for Yosys
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..3c7188d82 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +FROM ubuntu:18.04 as builder +LABEL author="Abdelrahman Hosny <abdelrahman.hosny@hotmail.com>" +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y build-essential \ + clang \ + bison \ + flex \ + libreadline-dev \ + gawk \ + tcl-dev \ + libffi-dev \ + git \ + pkg-config \ + python3 && \ + rm -rf /var/lib/apt/lists +COPY . / +RUN make && \ + make install + +FROM ubuntu:18.04 +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y 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"] |