docker-flutter-arm64/Dockerfile

21 lines
641 B
Docker
Raw Normal View History

2023-10-07 20:54:56 +00:00
FROM debian:bookworm-20230919-slim
# The version of Flutter to use
ARG FLUTTER_VERSION
2023-10-07 21:02:33 +00:00
RUN echo $FLUTTER_VERSION
2023-10-07 20:54:56 +00:00
# Set environment variables
ENV PATH="$PATH:/opt/flutter/bin"
RUN apt-get update && apt-get install -y git curl unzip
RUN mkdir -p /opt && \
git clone --depth=1 -b $FLUTTER_VERSION https://github.com/flutter/flutter.git /opt/flutter
# Install Flutter's Linux dependencies and pre-cache dependencies
#RUN apt-get install clang cmake ninja-build pkg-config libgtk3-dev liblzma-dev libstdc++-12-dev && \
# flutter precache && \
# rm -rf /var/lib/apt/lists/*
RUN flutter precache && \
rm -rf /var/lib/apt/lists/*