mirror of
https://github.com/stucki/docker-lineageos
synced 2024-12-19 17:12:29 -05:00
move repo command to /usr/local
This commit is contained in:
parent
4a76c9070a
commit
c66a2ba12d
@ -3,6 +3,10 @@
|
|||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
MAINTAINER Michael Stucki <michael@stucki.io>
|
MAINTAINER Michael Stucki <michael@stucki.io>
|
||||||
|
|
||||||
|
ENV \
|
||||||
|
# Extra include PATH, it may not include /usr/local/(s)bin on some systems
|
||||||
|
PATH=$PATH:/usr/local/bin/
|
||||||
|
|
||||||
RUN sed -i 's/main$/main universe/' /etc/apt/sources.list \
|
RUN sed -i 's/main$/main universe/' /etc/apt/sources.list \
|
||||||
&& export DEBIAN_FRONTEND=noninteractive \
|
&& export DEBIAN_FRONTEND=noninteractive \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
@ -63,9 +67,8 @@ RUN \
|
|||||||
useradd --gid $hostgid --uid $hostuid --non-unique build && \
|
useradd --gid $hostgid --uid $hostuid --non-unique build && \
|
||||||
rsync -a /etc/skel/ /home/build/
|
rsync -a /etc/skel/ /home/build/
|
||||||
|
|
||||||
RUN mkdir /home/build/bin
|
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo \
|
||||||
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /home/build/bin/repo
|
&& chmod a+x /usr/local/bin/repo
|
||||||
RUN chmod a+x /home/build/bin/repo
|
|
||||||
|
|
||||||
# Add sudo permission
|
# Add sudo permission
|
||||||
RUN echo "build ALL=NOPASSWD: ALL" > /etc/sudoers.d/build
|
RUN echo "build ALL=NOPASSWD: ALL" > /etc/sudoers.d/build
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
export PATH=/home/build/bin:$PATH
|
|
||||||
export USE_CCACHE=1
|
export USE_CCACHE=1
|
||||||
export CCACHE_DIR=/srv/ccache
|
export CCACHE_DIR=/srv/ccache
|
||||||
export CCACHE_COMPRESS=1
|
export CCACHE_COMPRESS=1
|
||||||
|
Loading…
Reference in New Issue
Block a user