Skip to content

Instantly share code, notes, and snippets.

@sr9yar
Last active July 19, 2023 15:48
Show Gist options
  • Save sr9yar/e16668c4ff189c26369abfc6524aad35 to your computer and use it in GitHub Desktop.
Save sr9yar/e16668c4ff189c26369abfc6524aad35 to your computer and use it in GitHub Desktop.
FROM debian:stable-slim
RUN apt update
RUN apt install -y \
curl git wget python3 \
zip unzip apt-transport-https \
ca-certificates gnupg clang \
cmake ninja-build pkg-config \
libgconf-2-4 gdb libstdc++6 \
libglu1-mesa fonts-droid-fallback \
libgtk-3-dev
RUN apt clean
RUN git clone -b stable --depth 1 https://github.com/flutter/flutter.git /usr/local/flutter
RUN chmod 755 -R /usr/local/flutter
ENV PATH="${PATH}:/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin"
# RUN git config --global --add safe.directory /usr/local/flutter
RUN flutter channel stable
RUN flutter upgrade
RUN flutter config --enable-web
RUN flutter doctor -v
RUN git config --global --add safe.directory /usr/local/flutter
# Build:
# docker buildx build - < Dockerfile -t sr9yar/flutter:latest --progress=plain --platform linux/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment