GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PlugFox/docker_flutter: Ubuntu image for Flutter & Dart with helpful utils and web build support.

BranchesTags
Open more actions menu

Latest commit

 

History

126 Commits
126 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
dockerfiles
dockerfiles
 
 
tool
tool
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

Flutter docker image

BUILD AND PUBLISH FLUTTER IMAGES GitHub Docker License: MIT

Docker Images for Flutter & Dart with useful utils and web build support. Symlinks to dart, flutter in the folder: /opt/flutter Release update strategy at every new flutter version.

Android tags include the Android SDK and Flutter for Android development. Web tags include the minify utility for web build optimization.

Environment variables

Base environment variables:

  • USER: flutter
  • WORKDIR: /home/flutter
  • SHELL: /bin/bash
  • FLUTTER_ROOT: /opt/flutter
  • FLUTTER_HOME: /opt/flutter
  • PUB_CACHE: /var/cache/pub

Andoid SDK environment variables:

  • ANDROID_HOME: /opt/android
  • ANDROID_SDK_ROOT: /opt/android
  • ANDROID_TOOLS_ROOT: /opt/android
  • ANDROID_SDK_TOOLS_VERSION: NNNNNNNN

How to build locally

docker build --compress \
    --file ./dockerfiles/flutter.dockerfile \
    --build-arg VERSION=stable \
    --tag plugfox/flutter:local .

docker build --compress \
    --file ./dockerfiles/flutter_web.dockerfile \
    --build-arg VERSION=local \
    --tag plugfox/flutter:local-web .

docker build --compress \
    --file ./dockerfiles/flutter_android.dockerfile \
    --build-arg VERSION=local \
    --tag plugfox/flutter:local-android .
   
docker build --compress \
    --file ./dockerfiles/flutter_linux.dockerfile \
    --build-arg VERSION=stable \
    --tag plugfox/flutter:local-linux .

How to get shell

docker run --rm -it --name flutter \
    -w /app \
    plugfox/flutter:local-android \
    /bin/bash

How to check image

docker run --rm -it --name flutter_web \
    -w /app \
    -v /tmp/build:/app/build/web \
    -v /tmp/cache:/var/cache/pub \
    plugfox/flutter:stable-web \
    /bin/bash -c "set -eux; flutter --version; dart --version; \
    flutter create --org="dev.flutter" --project-name="example" \
    --platforms=web --description="Example" . && \
    flutter pub get && flutter build web --release && \
    cd build/web && \
    mv index.html index.src.html && \
    minify --output index.html index.src.html"

About

Ubuntu image for Flutter & Dart with helpful utils and web build support.

hub.docker.com/r/plugfox/flutter

Topics

androidci-cdcontinuous-integrationcrossplatformdartdockerdockerfileflutterhububuntuweb

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity

Stars

63 stars

Watchers

5 watching

Forks

11 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.