Bot commited on
Commit
ad3e747
·
1 Parent(s): 8a5d485

Fix build by cloning loop-engineering to /opt/ to avoid Next.js compiling it

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -5,9 +5,9 @@ WORKDIR /app
5
  # Install git to clone loop-engineering
6
  RUN apk add --no-cache git
7
 
8
- # Clone and build loop-engineering MCP server
9
- RUN git clone https://github.com/cobusgreyling/loop-engineering.git /app/loop-engineering && \
10
- cd /app/loop-engineering/tools/mcp-server && \
11
  npm install && \
12
  npm run build
13
 
@@ -42,7 +42,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
42
  RUN apk add --no-cache git bash
43
 
44
  # Copy pre-built loop-engineering from builder stage
45
- COPY --from=builder /app/loop-engineering /app/loop-engineering
46
 
47
  RUN addgroup --system --gid 1001 nodejs
48
  RUN adduser --system --uid 1001 nextjs
 
5
  # Install git to clone loop-engineering
6
  RUN apk add --no-cache git
7
 
8
+ # Clone and build loop-engineering MCP server outside the Next.js project folder
9
+ RUN git clone https://github.com/cobusgreyling/loop-engineering.git /opt/loop-engineering && \
10
+ cd /opt/loop-engineering/tools/mcp-server && \
11
  npm install && \
12
  npm run build
13
 
 
42
  RUN apk add --no-cache git bash
43
 
44
  # Copy pre-built loop-engineering from builder stage
45
+ COPY --from=builder /opt/loop-engineering /app/loop-engineering
46
 
47
  RUN addgroup --system --gid 1001 nodejs
48
  RUN adduser --system --uid 1001 nextjs