- flutter/games: Home of the Flutter Casual Games Toolkit and other Flutter gaming templates をクローンする。
sudo docker-compose run flutter bash
cd app/templates/endless_runner
../../../flutter/bin/flutter create . --project-name endless_runner
../../../flutter/bin/flutter build web
- ホスト側で
cd games/templates/endless_runner/build/web
python3 -m http.server
- localhost:8000 をブラウザで開く
Last active
January 5, 2024 06:42
-
-
Save torus/a76db018b9943042da13d6b1927499dd to your computer and use it in GitHub Desktop.
Flutter in Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
flutter: | |
build: . | |
volumes: | |
- ./games:/work/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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