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:
parent
8210982e41
commit
5cff44c36d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user