Dockerfile: poistettu turha COPY pkg (Astro kopioi public/:n automaattisesti)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jaakko Vanhala
2026-04-11 08:06:39 +03:00
parent 8a1b204179
commit 4d74c38618

View File

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