Code Monkey home page Code Monkey logo

flutter-android-builder-docker's Introduction

Flutter-Android Builder

This repository contains simple Dockerfile that can used as environment to build Android (.apk or .aab) with Flutter.

What's inside Dockerfile

The Dockerfile has everything you need to build an Android application with Flutter. It has:

  1. Android SDK
  2. Flutter
  3. Ruby

Usage

Please make sure your Flutter version matches with available tags of this image

You can use it as base image on CI/CD pipeline. For example, if you are using GitLab CI/CD you can use it when building your Flutter’s source code

# on .gitlab-ci.yml

.for_staging:
  environment:
    name: staging
  only:
    - develop

.flutter_builder:
  image:
    name: landx/flutter-android-builder:latest
    entrypoint: [""]

.build_android:
  extends:
    - .flutter_builder
  artifacts:
    paths:
      - build/app/outputs/flutter-apk/app-staging-release.apk
    expire_in: 1 hour
  script:
    - android/build

android:staging:build:
  variables:
    PACKAGE_FORMAT: "apk"
    BUILD_FLAVOR: "staging"
  extends:
    - .build_android
    - .for_staging

Build your own image

You can build your own image using this Dockerfile, and match it with the flutter version you are using.

  1. Clone this repository
~$ git clone https://github.com/landx-id/flutter-android-builder-docker.git
  1. Build with passing flutter version as arguments
~$ cd flutter-android-builder-docker && docker build --build-arg flutter_version=<flutter version> --build-arg flutter_branch=<branch> .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.