diff --git a/network-poc/Dockerfile.prod b/network-poc/Dockerfile.prod index b4711ba..fafb760 100644 --- a/network-poc/Dockerfile.prod +++ b/network-poc/Dockerfile.prod @@ -3,10 +3,11 @@ # --- Vaihe 1: Frontend (Astro) --- FROM node:22-slim AS frontend WORKDIR /app/frontend +# Riippuvuudet ensin → cache-kerros (muuttuu harvoin) COPY frontend/package.json frontend/package-lock.json* ./ RUN npm install --silent +# Lähdekoodi → muuttuu usein, mutta npm install on cachessa COPY frontend/ . -COPY frontend/public/pkg public/pkg RUN npm run build # --- Vaihe 2: Wasm (wasm-pack) ---