mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 13:44:54 +00:00
Merge pull request #10 from johndoe6345789/copilot/take-a-look-jemison-mercantile
Fix Docker build workspace protocol error
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -2,13 +2,19 @@ FROM node:20-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files and workspace packages for dependency installation
|
||||
COPY package*.json ./
|
||||
COPY packages/spark/package.json ./packages/spark/package.json
|
||||
COPY packages/spark/src ./packages/spark/src
|
||||
|
||||
# Install all dependencies (including devDependencies needed for build)
|
||||
RUN npm ci
|
||||
# Install dependencies
|
||||
# Note: npm ci doesn't work reliably with workspace: protocol, so we use npm install
|
||||
RUN npm install
|
||||
|
||||
# Copy remaining application files
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine AS runtime
|
||||
|
||||
Reference in New Issue
Block a user