From f730dabca257b86cf101839cdff676a67cf86529 Mon Sep 17 00:00:00 2001 From: josiadmin Date: Mon, 26 Jan 2026 20:11:32 +0100 Subject: [PATCH] mod dockerfile --- Dockerfile | 7 ++++--- proxy-server/Dockerfile | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f676e70..014d176 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,10 +18,11 @@ RUN apt-get update && apt-get install -y \ # Install Flutter ENV FLUTTER_HOME=/usr/local/flutter ENV PATH="${FLUTTER_HOME}/bin:${PATH}" +ENV TAR_OPTIONS=--no-same-owner RUN git clone https://github.com/flutter/flutter.git ${FLUTTER_HOME} -b stable --depth 1 && \ flutter config --enable-web --no-analytics && \ - flutter doctor -v + flutter precache --web # Set working directory WORKDIR /app @@ -34,8 +35,8 @@ RUN flutter pub get COPY . . -# Build web app (downloads web artifacts on-demand without gradle) -RUN flutter build web --release --web-renderer canvaskit +# Build web app (web-only artifacts; suppress wasm dry-run warnings) +RUN flutter build web --release --no-wasm-dry-run # Production stage - Nginx FROM nginx:alpine diff --git a/proxy-server/Dockerfile b/proxy-server/Dockerfile index dd99bde..d924fd8 100644 --- a/proxy-server/Dockerfile +++ b/proxy-server/Dockerfile @@ -6,8 +6,8 @@ WORKDIR /app # Copy package files COPY package*.json ./ -# Install dependencies (only production for smaller image) -RUN npm ci --only=production +# Install dependencies (omit dev; no lockfile required) +RUN npm install --omit=dev # Copy application code COPY server.js ./