dockerfile: DEBIAN_FRONTEND should not be permanent

This commit is contained in:
1138-4EB 2019-07-01 13:21:16 +02:00
parent 8110fb9266
commit 1f801993e3
1 changed files with 16 additions and 9 deletions

View File

@ -1,25 +1,32 @@
FROM ubuntu:18.04 as builder FROM ubuntu:18.04 as builder
LABEL author="Abdelrahman Hosny <abdelrahman.hosny@hotmail.com>" LABEL author="Abdelrahman Hosny <abdelrahman.hosny@hotmail.com>"
ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update -qq \
RUN apt-get update && apt-get install -y build-essential \ && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
ca-certificates \
clang \ clang \
bison \ bison \
build-essential \
flex \ flex \
libreadline-dev \
gawk \ gawk \
tcl-dev \
libffi-dev \
git \ git \
libffi-dev \
libreadline-dev \
pkg-config \ pkg-config \
python3 && \ python3 \
rm -rf /var/lib/apt/lists tcl-dev \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists
COPY . / COPY . /
RUN make && \ RUN make && \
make install make install
FROM ubuntu:18.04 FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update -qq \
RUN apt-get update && apt-get install -y libreadline-dev tcl-dev && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
libreadline-dev \
tcl-dev
COPY --from=builder /yosys /build/yosys COPY --from=builder /yosys /build/yosys
COPY --from=builder /yosys-abc /build/yosys-abc COPY --from=builder /yosys-abc /build/yosys-abc