update backend building
This commit is contained in:
@@ -12,8 +12,8 @@ RUN apk add --no-cache python3 make g++
|
|||||||
# Copy package files for dependency installation
|
# Copy package files for dependency installation
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install all dependencies (including devDependencies for building)
|
# Install all dependencies including devDependencies regardless of NODE_ENV
|
||||||
RUN npm ci
|
RUN npm ci --include=dev
|
||||||
|
|
||||||
# Expose local binaries (e.g. tsc) to the shell PATH so npm run build resolves them
|
# Expose local binaries (e.g. tsc) to the shell PATH so npm run build resolves them
|
||||||
ENV PATH="/app/node_modules/.bin:$PATH"
|
ENV PATH="/app/node_modules/.bin:$PATH"
|
||||||
|
|||||||
Reference in New Issue
Block a user