1
0
mirror of https://github.com/kylemanna/docker-aosp synced 2025-06-07 16:06:17 +00:00

entrypoint: Preserve ENV variables

A few ENV variables are set in the Docker file, most notably those
related to ccache.  The move to a docker entrypoint script  called
sudo to switch to the AOSP user and reset the ENV varibles.

Preserve these variables so that things set in the Dockerfile are
inherited by the environment as expected.
This commit is contained in:
Kyle Manna 2016-10-13 14:53:41 -07:00
parent e6d066ea2e
commit c2764be332

View File

@ -45,4 +45,4 @@ fi
# Execute command as `aosp` user # Execute command as `aosp` user
export HOME=/home/aosp export HOME=/home/aosp
exec sudo -u aosp $args exec sudo -E -u aosp $args