2026-01-09 08:28:28 +00:00
|
|
|
FROM ghcr.io/cirruslabs/flutter:stable
|
|
|
|
|
|
|
|
|
|
# Install cmake, ninja, clang, pkg-config for flutter linux
|
|
|
|
|
RUN apt-get update && apt-get install -y cmake ninja-build clang pkg-config libgtk-3-dev liblzma-dev
|
2026-01-08 17:47:48 +00:00
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2026-01-09 08:28:28 +00:00
|
|
|
# Configure cache directories
|
|
|
|
|
ENV PUB_CACHE=/cache/pub-cache
|
|
|
|
|
ENV GRADLE_USER_HOME=/cache/gradle-cache
|
|
|
|
|
RUN mkdir -p $PUB_CACHE $GRADLE_USER_HOME
|
|
|
|
|
|
|
|
|
|
# Copy pubspec files and get dependencies
|
2026-01-28 12:35:17 +00:00
|
|
|
# Commented out to avoid building the app during image creation, this will be handled externally by makefile
|
2026-01-09 12:57:44 +00:00
|
|
|
# COPY pubspec.yaml pubspec.lock ./
|
|
|
|
|
# RUN flutter pub get
|
2026-01-08 17:47:48 +00:00
|
|
|
|
2026-01-09 08:28:28 +00:00
|
|
|
# Copy the rest of the application code and build
|
|
|
|
|
# Commented out to avoid building the app during image creation, this will be handled externally by makefile
|
|
|
|
|
# COPY . .
|
|
|
|
|
# RUN flutter build apk --release
|