feat: default build command

This commit is contained in:
ange 2025-02-01 15:46:09 +00:00
parent fc9c206d38
commit 7ad445b609
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 2 additions and 1 deletions

View File

@ -38,3 +38,4 @@ RUN yes | flutter doctor --android-licenses
COPY entrypoint.sh /usr/local/bin/
WORKDIR /app/
ENTRYPOINT ["entrypoint.sh"]
CMD ["build", "apk"]

View File

@ -11,4 +11,4 @@ docker run --rm --network host -v "$PWD:/app/" -v "fluttercache:/home/gradle/.gr
docker volume create --ignore fluttercache
docker run --rm -v "$PWD:/app/" -v "fluttercache:/home/gradle/.gradle/" git.gmoker.com/icing/flutter:main build apk
```
The apk files will be found in `./build/app/outputs/flutter-apk/`.
The apk will be found at `build/app/outputs/flutter-apk/app-release.apk`.