fix: include devDependencies in deps stage so tailwind/postcss are present at build
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
FROM node:20-alpine AS deps
|
FROM node:20-alpine AS deps
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json* ./
|
COPY package.json package-lock.json* ./
|
||||||
RUN if [ -f package-lock.json ]; then npm ci; else npm install --no-audit --no-fund; fi
|
RUN if [ -f package-lock.json ]; then npm ci --include=dev; else npm install --no-audit --no-fund --include=dev; fi
|
||||||
|
|
||||||
# ---- builder ----
|
# ---- builder ----
|
||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
|
|||||||
Reference in New Issue
Block a user