commit 74d2fa3d03aa3e20c1ce5bb912e7eaf263cc1e14 Author: ange Date: Sat Nov 9 12:36:41 2024 +0800 first commit diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..b6287e0 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,12 @@ +on: push + +jobs: + build: + runs-on: debian + steps: + - uses: actions/checkout@v1 + - uses: actions/kaniko@v1 + with: + image: flutter:latest + password: "${{ secrets.PKGRW }}" + cache: false diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..088f102 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM docker.io/debian:12-slim as build +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + xz-utils \ + && rm -rf /var/lib/apt/lists/* +ADD https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.24.4-stable.tar.xz /flutter.tar.xz +RUN tar -C /opt/ -xJf /flutter.tar.xz + +FROM docker.io/debian:12-slim +RUN useradd -m app +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + curl \ + git \ + sdkmanager \ + unzip \ + && rm -rf /var/lib/apt/lists/* +RUN sdkmanager \ + "build-tools;35.0.0" \ + "cmdline-tools;9.0" \ + "platform-tools;35.0.2" \ + "platforms;android-35" +COPY --from=build --chown=app:app /opt/ /opt/ +USER app +ENV PATH="/opt/flutter/bin:$PATH" +RUN flutter doctor -v