mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-11 17:29:26 +02:00
feat: Add .dockerignore and configure Dockerfile for Flutter web build with updated base image.
This commit is contained in:
1 parent
92adafd963
commit
1b4e20c418
3 files changed
+29
-2
No files matched your search
@@ -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
@@ -45,7 +45,7 @@ app.*.map.json
|
|||||||
/android/app/release
|
/android/app/release
|
||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
.dockerignore
|
|
||||||
|
|
||||||
# Hive data (local development)
|
# Hive data (local development)
|
||||||
*.hive
|
*.hive
|
||||||
|
|||||||
+7
-1
@@ -1,10 +1,16 @@
|
|||||||
# ============================================
|
# ============================================
|
||||||
# Stage 1: Build Flutter Web Application
|
# Stage 1: Build Flutter Web Application
|
||||||
# ============================================
|
# ============================================
|
||||||
FROM cirrusci/flutter:stable AS builder
|
FROM ghcr.io/cirruslabs/flutter:stable AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
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 dependency files first for better caching
|
||||||
COPY pubspec.yaml pubspec.lock ./
|
COPY pubspec.yaml pubspec.lock ./
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user