harvesthealth commited on
Commit
14a94e9
·
verified ·
1 Parent(s): d12e9cd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -8,13 +8,14 @@ WORKDIR /build
8
  RUN --mount=type=cache,target=/var/cache/apk \
9
  apk add git
10
 
11
- # Copy the entire project structure to avoid read-only issues
12
  COPY . .
13
 
14
- # Fetch the required Go modules
15
  RUN --mount=type=cache,target=/go/pkg/mod \
16
  --mount=type=cache,target=/root/.cache/go-build \
17
- go mod tidy
 
18
 
19
  # Build the server
20
  RUN --mount=type=cache,target=/go/pkg/mod \
 
8
  RUN --mount=type=cache,target=/var/cache/apk \
9
  apk add git
10
 
11
+ # Copy the entire project structure
12
  COPY . .
13
 
14
+ # Fix the import path and tidy dependencies
15
  RUN --mount=type=cache,target=/go/pkg/mod \
16
  --mount=type=cache,target=/root/.cache/go-build \
17
+ go mod edit -replace=github.com/mark3labs/mcp-go=github.com/mark3labs/mcp-go/mcp
18
+ RUN go mod tidy
19
 
20
  # Build the server
21
  RUN --mount=type=cache,target=/go/pkg/mod \