harvesthealth commited on
Commit
bde49a8
·
verified ·
1 Parent(s): 94d2c4f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -6,15 +6,15 @@ WORKDIR /build
6
 
7
  # Install git
8
  RUN --mount=type=cache,target=/var/cache/apk \
9
- apk add git
10
 
11
  # Build the server
12
  # go build automatically download required module dependencies to /go/pkg/mod
13
  RUN --mount=type=cache,target=/go/pkg/mod \
14
- --mount=type=cache,target=/root/.cache/go-build \
15
- --mount=type=bind,target=. \
16
- CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
17
- -o /bin/github-mcp-server cmd/github-mcp-server/main.go
18
 
19
  # Make a stage to run the app
20
  FROM python:3.9-slim
 
6
 
7
  # Install git
8
  RUN --mount=type=cache,target=/var/cache/apk \
9
+ apk add git
10
 
11
  # Build the server
12
  # go build automatically download required module dependencies to /go/pkg/mod
13
  RUN --mount=type=cache,target=/go/pkg/mod \
14
+ --mount=type=cache,target=/root/.cache/go-build \
15
+ --mount=type=bind,target=. \
16
+ CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
17
+ -o /bin/github-mcp-server cmd/github-mcp-server/main.go
18
 
19
  # Make a stage to run the app
20
  FROM python:3.9-slim