From 4efc15bc2c79dffdeffc93a1f0fb80b8536984a5 Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Tue, 21 Apr 2026 22:05:18 +0200 Subject: [PATCH] fix: simplify Dockerfile by removing user creation and ownership commands --- flutter/Dockerfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/flutter/Dockerfile b/flutter/Dockerfile index 04ed7f46..40c1470b 100644 --- a/flutter/Dockerfile +++ b/flutter/Dockerfile @@ -3,15 +3,10 @@ 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 -RUN git config --global --add safe.directory /sdks/flutter +COPY pubspec.yaml pubspec.lock* ./ RUN flutter pub get -COPY --chown=flutteruser:flutteruser . . +COPY . . # Inject API base URL at build time via --dart-define. # Default to same-origin /api to avoid mixed-content in HTTPS deployments.