mirror of
https://github.com/stucki/docker-lineageos
synced 2025-01-09 17:39:47 -05:00
Merge pull request #37 from bebehei/apt-calls
Move apt stuff into one RUN
This commit is contained in:
commit
4a76c9070a
62
Dockerfile
62
Dockerfile
@ -3,23 +3,57 @@
|
|||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
MAINTAINER Michael Stucki <michael@stucki.io>
|
MAINTAINER Michael Stucki <michael@stucki.io>
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
RUN sed -i 's/main$/main universe/' /etc/apt/sources.list \
|
||||||
|
&& export DEBIAN_FRONTEND=noninteractive \
|
||||||
RUN sed -i 's/main$/main universe/' /etc/apt/sources.list
|
&& apt-get update \
|
||||||
RUN apt-get -qq update
|
&& apt-get upgrade -y \
|
||||||
RUN apt-get -qqy upgrade
|
&& apt-get install -y \
|
||||||
|
|
||||||
# Install build dependencies (source: https://wiki.cyanogenmod.org/w/Build_for_bullhead)
|
# Install build dependencies (source: https://wiki.cyanogenmod.org/w/Build_for_bullhead)
|
||||||
RUN apt-get install -y bison build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop maven openjdk-8-jdk pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev
|
bison \
|
||||||
|
build-essential \
|
||||||
|
curl \
|
||||||
|
flex \
|
||||||
|
git \
|
||||||
|
gnupg \
|
||||||
|
gperf \
|
||||||
|
libesd0-dev \
|
||||||
|
liblz4-tool \
|
||||||
|
libncurses5-dev \
|
||||||
|
libsdl1.2-dev \
|
||||||
|
libwxgtk3.0-dev \
|
||||||
|
libxml2 \
|
||||||
|
libxml2-utils \
|
||||||
|
lzop \
|
||||||
|
maven \
|
||||||
|
openjdk-8-jdk \
|
||||||
|
pngcrush \
|
||||||
|
schedtool \
|
||||||
|
squashfs-tools \
|
||||||
|
xsltproc \
|
||||||
|
zip \
|
||||||
|
zlib1g-dev \
|
||||||
# For 64-bit systems
|
# For 64-bit systems
|
||||||
RUN apt-get install -y g++-multilib gcc-multilib lib32ncurses5-dev lib32readline6-dev lib32z1-dev
|
g++-multilib \
|
||||||
|
gcc-multilib \
|
||||||
|
lib32ncurses5-dev \
|
||||||
|
lib32readline6-dev \
|
||||||
|
lib32z1-dev \
|
||||||
# Install additional packages which are useful for building Android
|
# Install additional packages which are useful for building Android
|
||||||
RUN apt-get install -y ccache rsync tig sudo imagemagick
|
android-tools-adb \
|
||||||
RUN apt-get install -y android-tools-adb android-tools-fastboot
|
android-tools-fastboot \
|
||||||
RUN apt-get install -y bc bsdmainutils file screen
|
bash-completion \
|
||||||
RUN apt-get install -y bash-completion wget nano
|
bc \
|
||||||
|
bsdmainutils \
|
||||||
|
ccache \
|
||||||
|
file \
|
||||||
|
imagemagick \
|
||||||
|
nano \
|
||||||
|
rsync \
|
||||||
|
screen \
|
||||||
|
sudo \
|
||||||
|
tig \
|
||||||
|
wget \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ARG hostuid=1000
|
ARG hostuid=1000
|
||||||
ARG hostgid=1000
|
ARG hostgid=1000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user