feat: Add .dockerignore and configure Dockerfile for Flutter web build with updated base image.

This commit is contained in:
Michael committed 2025-12-05 10:32:15 +01:00
1 parent 92adafd963
commit 1b4e20c418
3 files changed
+29 -2

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# Git
.git
.gitignore
# Flutter/Dart
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
build/
# IDEs
.idea/
.vscode/
*.iml
# OS
.DS_Store
Thumbs.db
+1 -1
View File
@@ -45,7 +45,7 @@ app.*.map.json
/android/app/release
# Docker
.dockerignore
# Hive data (local development)
*.hive
+7 -1
View File
@@ -1,10 +1,16 @@
# ============================================
# Stage 1: Build Flutter Web Application
# ============================================
FROM cirrusci/flutter:stable AS builder
FROM ghcr.io/cirruslabs/flutter:stable AS builder
WORKDIR /app
# Safe directory configuration for git
RUN git config --global --add safe.directory /app
# Enable web support (idempotent)
RUN flutter config --enable-web
# Copy dependency files first for better caching
COPY pubspec.yaml pubspec.lock ./