1
0
mirror of https://github.com/stucki/docker-lineageos synced 2024-12-19 17:12:29 -05:00

Make sure that the "universe" section is only added to sources.list if it is missing

This commit is contained in:
Michael Stucki 2014-02-20 11:05:21 +01:00
parent 8210982e41
commit 5cff44c36d

View File

@ -5,7 +5,8 @@
FROM ubuntu:12.04
MAINTAINER Michael Stucki <mundaun@gmx.ch>
RUN echo "deb http://archive.ubuntu.com/ubuntu precise universe" >> /etc/apt/sources.list
# Newer images of ubuntu:12.04 already contain this entry, and if the line appears twice in the file, apt would throw a warning.
RUN grep -q "universe" /etc/apt/sources.list || echo "deb http://archive.ubuntu.com/ubuntu precise universe" >> /etc/apt/sources.list
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -qq update