From 1b4e20c41811d1d3826fe59a8128eafa5f5df271 Mon Sep 17 00:00:00 2001 From: R0m1k3 Date: Fri, 5 Dec 2025 10:32:15 +0100 Subject: [PATCH] feat: Add .dockerignore and configure Dockerfile for Flutter web build with updated base image. --- .dockerignore | 21 +++++++++++++++++++++ .gitignore | 2 +- Dockerfile | 8 +++++++- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..856dff4 --- /dev/null +++ b/.dockerignore @@ -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 diff --git a/.gitignore b/.gitignore index 4a5bb18..5507ab1 100644 --- a/.gitignore +++ b/.gitignore @@ -45,7 +45,7 @@ app.*.map.json /android/app/release # Docker -.dockerignore + # Hive data (local development) *.hive diff --git a/Dockerfile b/Dockerfile index 6b82f61..83b7fee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ./