Files
biteplan/docker/dev/Dockerfile
T
davide 5c871f247d build: rendi la build Docker riproducibile
- Pinna Flutter a 3.41.9 (ARG FLUTTER_VERSION) in entrambi i Dockerfile
- Aggiunge /opt/android-sdk/build-tools/34.0.0 al PATH (zipalign era missing)
- Sostituisce mount ${HOME}/.gradle con named volume gradle-cache
- Aggiunge --enforce-lockfile a flutter pub get per bloccare le dipendenze
- Aggiunge .flutter-version con la versione Flutter attesa

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 22:03:51 +02:00

19 lines
520 B
Docker

FROM ubuntu:22.04
ARG FLUTTER_VERSION=3.41.9
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 ${FLUTTER_VERSION} \
https://github.com/flutter/flutter.git /opt/flutter && \
flutter config --no-analytics --enable-web && \
flutter precache --web
WORKDIR /workspace