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

Move environment variables to /etc/env-android.sh

This commit is contained in:
Michael Stucki 2014-06-28 16:25:21 +02:00
parent 4502de2ad2
commit 26e6bc2072
2 changed files with 4 additions and 2 deletions

View File

@ -31,8 +31,8 @@ RUN mkdir /home/cmbuild/bin
RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /home/cmbuild/bin/repo
RUN chmod a+x /home/cmbuild/bin/repo
RUN echo "export PATH=${PATH}:/home/cmbuild/bin" >> /etc/bash.bashrc
RUN echo "export USE_CCACHE=1" >> /etc/bash.bashrc
ADD android-env-vars.sh /etc/android-env-vars.sh
RUN echo "source /etc/android-env-vars.sh" >> /etc/bash.bashrc
WORKDIR /home/cmbuild/android
VOLUME /home/cmbuild/android

2
android-env-vars.sh Normal file
View File

@ -0,0 +1,2 @@
export PATH=/home/cmbuild/bin:$PATH
export USE_CCACHE=1