17 lines
480 B
Docker
17 lines
480 B
Docker
|
|
FROM ubuntu:22.04
|
||
|
|
|
||
|
|
ENV DEBIAN_FRONTEND=noninteractive \
|
||
|
|
FLUTTER_HOME=/opt/flutter \
|
||
|
|
PATH="/opt/flutter/bin:${PATH}"
|
||
|
|
|
||
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||
|
|
curl git unzip xz-utils ca-certificates \
|
||
|
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
|
||
|
|
RUN git clone --depth 1 --branch stable \
|
||
|
|
https://github.com/flutter/flutter.git /opt/flutter && \
|
||
|
|
flutter config --no-analytics --enable-web && \
|
||
|
|
flutter precache --web
|
||
|
|
|
||
|
|
WORKDIR /workspace
|