FROM ubuntu:22.04 # Install flutter dependencies RUN apt-get update && apt-get install -y curl git wget unzip libgconf-2-4 gdb fonts-droid-fallback python3 xz-utils zip libglu1-mesa openjdk-8-jdk && apt-get clean # Set up new user RUN useradd -ms /bin/bash developer USER developer WORKDIR /home/developer # Clone the flutter repo RUN git clone https://github.com/flutter/flutter.git /home/developer/flutter ENV PATH "$PATH:/home/developer/flutter/bin" # Enable flutter web RUN flutter channel stable RUN flutter config --enable-web RUN flutter upgrade RUN flutter doctor