Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
-
#
|
| 15 |
RUN --mount=type=cache,target=/go/pkg/mod \
|
| 16 |
--mount=type=cache,target=/root/.cache/go-build \
|
| 17 |
-
go mod
|
|
|
|
| 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 \
|