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:
@@ -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) ---
|
||||||
|
|||||||
Reference in New Issue
Block a user