flutter/Dockerfile

15 lines
537 B
Text
Raw Normal View History

2024-08-01 08:43:19 +00:00
FROM ubuntu:22.04
2024-08-01 08:44:39 +00:00
# Install flutter dependencies
2024-08-01 09:03:21 +00:00
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
2024-08-01 08:44:39 +00:00
2024-08-01 08:43:19 +00:00
# Clone the flutter repo
2024-08-02 06:08:19 +00:00
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"
2024-08-01 08:43:19 +00:00
# Enable flutter web
RUN flutter channel stable
RUN flutter config --enable-web
RUN flutter upgrade
RUN flutter doctor