Skip to content

Commit

Permalink
Merge pull request #1693 from aledbf/master
Browse files Browse the repository at this point in the history
Fix docker build
  • Loading branch information
aledbf authored Nov 12, 2017
2 parents fea1173 + cf42d3b commit 96e6e04
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 96e6e04

Please sign in to comment.