flutter/Dockerfile
2024-08-02 08:08:19 +02:00

14 lines
537 B
Docker

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 clang ninja-build pkg-config && apt-get clean
# Clone the flutter repo
RUN git clone https://github.com/flutter/flutter.git /usr/bin/flutter
ENV PATH "$PATH:/usr/bin/flutter/bin:/usr/bin/flutter/bin/cache/dart-sdk/bin"
# Enable flutter web
RUN flutter channel stable
RUN flutter config --enable-web
RUN flutter upgrade
RUN flutter doctor