-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
46 lines (40 loc) · 1001 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ubuntu:18.04
MAINTAINER Daniel Christophis <[email protected]>
ARG UID=1024
ARG GID=1024
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get purge openjdk-* icedtea-* icedtea6-*
RUN apt-get install -y \
openjdk-8-jdk \
bison \
ccache \
g++-multilib \
git \
git-lfs \
gperf \
libxml2-utils \
make \
zlib1g-dev:i386 \
zip \
liblz4-tool \
libncurses5 \
libssl-dev \
bc \
flex \
curl \
python \
python3 \
rsync
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /bin/repo
RUN chmod a+x /bin/repo
RUN groupadd -r -g $GID developer
RUN useradd -r -m -s /bin/bash -g $GID -u $UID developer
USER developer
WORKDIR /home/developer
RUN git config --global user.name "LineageOS builder"
RUN git config --global user.email "[email protected]"
RUN git config --global color.ui false
COPY --chown=developer:developer entrypoint.sh /home/developer/entrypoint.sh
RUN chmod +x /home/developer/entrypoint.sh
ENTRYPOINT [ "/home/developer/entrypoint.sh" ]