Merge pull request #1693 from aledbf/master

Fix docker build
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-11-12 01:47:24 -03:00 committed by GitHub
commit 96e6e04119
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,18 +16,18 @@ FROM BASEIMAGE
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
RUN if grep -q -i "ports.ubuntu.com" /etc/apt/sources.list; \ +RUN clean-install \
RUN if grep -q -i "ports.ubuntu.com" /etc/apt/sources.list; \
then \
echo "deb http://ports.ubuntu.com/ubuntu-ports zesty universe" >> /etc/apt/sources.list; \
else \
echo "deb http://archive.ubuntu.com/ubuntu zesty universe" >> /etc/apt/sources.list; \
fi \
&& DEBIAN_FRONTEND=noninteractive apt-get update \
&& apt-get install -y \
diffutils \
dumb-init \
--no-install-recommends \
&& apt-get clean \
else \
echo "deb http://archive.ubuntu.com/ubuntu zesty universe" >> /etc/apt/sources.list; \
fi \
&& DEBIAN_FRONTEND=noninteractive apt-get update \
&& apt-get install -y \
diffutils \
dumb-init \
--no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/usr/bin/dumb-init"]