Skip to content

Instantly share code, notes, and snippets.

@torus
Last active January 5, 2024 06:42
Show Gist options
  • Save torus/a76db018b9943042da13d6b1927499dd to your computer and use it in GitHub Desktop.
Save torus/a76db018b9943042da13d6b1927499dd to your computer and use it in GitHub Desktop.
Flutter in Docker
version: '2'
services:
flutter:
build: .
volumes:
- ./games:/work/app
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y curl xz-utils
WORKDIR /work
RUN curl -O https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.16.5-stable.tar.xz
RUN tar xf flutter_linux_3.16.5-stable.tar.xz
RUN apt-get install -y git
RUN git config --global --add safe.directory /work/flutter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment