chore: rimuove il container Docker per il dev
Lo sviluppo passa da hot reload via Docker/web a Flutter installato sull'host con emulatore Android dedicato (vedi CLAUDE.md). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
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
|
||||
@@ -1,14 +0,0 @@
|
||||
services:
|
||||
dev:
|
||||
build: .
|
||||
ports:
|
||||
- "5173:5173"
|
||||
volumes:
|
||||
- ../../:/workspace
|
||||
- pub-cache:/root/.pub-cache
|
||||
command: bash /workspace/docker/dev/entrypoint.sh
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
||||
volumes:
|
||||
pub-cache:
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Aggiunge supporto web se mancante (crea solo web/, non tocca lib/)
|
||||
if [[ ! -d /workspace/web ]]; then
|
||||
echo "→ Inizializzazione supporto web..."
|
||||
flutter create . --platforms=web
|
||||
fi
|
||||
|
||||
# Aggiunge permesso CAMERA se assente (richiesto da mobile_scanner)
|
||||
MANIFEST=/workspace/android/app/src/main/AndroidManifest.xml
|
||||
if [[ -f "$MANIFEST" ]] && ! grep -q "CAMERA" "$MANIFEST"; then
|
||||
echo "→ Aggiunta permesso CAMERA in AndroidManifest.xml..."
|
||||
sed -i 's|<application|<uses-permission android:name="android.permission.CAMERA" />\n <application|' "$MANIFEST"
|
||||
fi
|
||||
|
||||
flutter pub get
|
||||
exec flutter run -d web-server --web-hostname=0.0.0.0 --web-port=5173
|
||||
Reference in New Issue
Block a user