mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-06 17:38:48 +00:00
build.Containerfile: use cache for the Android SDK
This commit is contained in:
parent
53c5ea26b6
commit
e7e8af6a10
1 changed files with 4 additions and 2 deletions
|
@ -37,10 +37,12 @@ COPY --chown=builder / project/
|
|||
|
||||
# accept SDK licenses
|
||||
ENV ANDROID_HOME /home/builder/android-sdk
|
||||
RUN yes | /usr/bin/sdkmanager --licenses >/dev/null
|
||||
RUN --mount=target=/home/builder/android-sdk,type=cache,uid=1000,gid=1000,sharing=locked \
|
||||
yes | /usr/bin/sdkmanager --licenses >/dev/null
|
||||
|
||||
# build project
|
||||
RUN if [ -e /dev/fuse ] ; \
|
||||
RUN --mount=target=/home/builder/android-sdk,type=cache,uid=1000,gid=1000,sharing=locked \
|
||||
if [ -e /dev/fuse ] ; \
|
||||
then /bin/mv project project.u && /bin/mkdir project && \
|
||||
/usr/bin/disorderfs --sort-dirents=yes --reverse-dirents=no project.u project ; \
|
||||
fi && \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue