mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 06:08:51 +00:00
build.Containerfile: use a project subdirectory
This commit is contained in:
parent
ed00894f88
commit
42e3ffbc77
1 changed files with 5 additions and 5 deletions
|
@ -23,17 +23,17 @@ RUN /usr/bin/apt-get update && \
|
||||||
# give up privileges
|
# give up privileges
|
||||||
USER builder
|
USER builder
|
||||||
|
|
||||||
# copy source code
|
# copy project source code
|
||||||
WORKDIR /home/builder
|
WORKDIR /home/builder
|
||||||
COPY --chown=builder / .
|
COPY --chown=builder / project/
|
||||||
|
|
||||||
# accept SDK licenses
|
# accept SDK licenses
|
||||||
ENV ANDROID_HOME /home/builder/android-sdk
|
ENV ANDROID_HOME /home/builder/android-sdk
|
||||||
RUN yes | /usr/bin/sdkmanager --licenses >/dev/null
|
RUN yes | /usr/bin/sdkmanager --licenses >/dev/null
|
||||||
|
|
||||||
# build
|
# build project
|
||||||
RUN /usr/bin/gradle --no-build-cache --no-daemon --no-parallel clean :oeffi:assembleRelease
|
RUN /usr/bin/gradle --project-dir project/ --no-build-cache --no-daemon --no-parallel clean :oeffi:assembleRelease
|
||||||
|
|
||||||
# export build output
|
# export build output
|
||||||
FROM scratch AS export-stage
|
FROM scratch AS export-stage
|
||||||
COPY --from=build-stage /home/builder/oeffi/build/outputs/apk/*/release/oeffi-*-release-unsigned.apk /
|
COPY --from=build-stage /home/builder/project/oeffi/build/outputs/apk/*/release/oeffi-*-release-unsigned.apk /
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue