1*49cdfc7eSAndroid Build Coastguard WorkerFROM ubuntu:20.04 2*49cdfc7eSAndroid Build Coastguard WorkerARG userid 3*49cdfc7eSAndroid Build Coastguard WorkerARG groupid 4*49cdfc7eSAndroid Build Coastguard WorkerARG username 5*49cdfc7eSAndroid Build Coastguard WorkerARG ltproot 6*49cdfc7eSAndroid Build Coastguard Worker 7*49cdfc7eSAndroid Build Coastguard WorkerRUN apt-get update && apt-get install -y python autoconf build-essential libssl-dev pkgconf 8*49cdfc7eSAndroid Build Coastguard Worker 9*49cdfc7eSAndroid Build Coastguard Worker# Set up the user so that files are owned by the proper user 10*49cdfc7eSAndroid Build Coastguard WorkerRUN groupadd -g $groupid $username \ 11*49cdfc7eSAndroid Build Coastguard Worker && useradd -m -u $userid -g $groupid $username 12*49cdfc7eSAndroid Build Coastguard WorkerRUN mkdir -p $ltproot && chown $userid $ltproot 13*49cdfc7eSAndroid Build Coastguard WorkerENV LTP_ROOT=$ltproot 14*49cdfc7eSAndroid Build Coastguard WorkerUSER $username 15*49cdfc7eSAndroid Build Coastguard Worker 16*49cdfc7eSAndroid Build Coastguard WorkerCMD /src/android/tools/docker_entry.sh 17