fix: ensure proper ownership of Flutter SDK cache directory in Dockerfile

This commit is contained in:
Nils-Johan Gynther
2026-04-21 22:03:49 +02:00
parent b34790f198
commit ebb749383c
+1
View File
@@ -4,6 +4,7 @@ FROM ghcr.io/cirruslabs/flutter:stable AS builder
WORKDIR /app
RUN useradd -m -u 10001 flutteruser
RUN chown -R flutteruser:flutteruser /sdks/flutter/bin/cache
COPY --chown=flutteruser:flutteruser pubspec.yaml pubspec.lock* ./
USER flutteruser