harvesthealth commited on
Commit
9165965
·
verified ·
1 Parent(s): ffc9d18

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -7
Dockerfile CHANGED
@@ -17,12 +17,25 @@ RUN --mount=type=cache,target=/go/pkg/mod \
17
  -o /bin/github-mcp-server cmd/github-mcp-server/main.go
18
 
19
  # Make a stage to run the app
20
- FROM gcr.io/distroless/base-debian12
 
21
  # Set the working directory
22
- WORKDIR /server
 
23
  # Copy the binary from the build stage
24
- COPY --from=build /bin/github-mcp-server .
25
- # Set the entrypoint to the server binary
26
- ENTRYPOINT ["/server/github-mcp-server"]
27
- # Default arguments for ENTRYPOINT
28
- CMD ["stdio"]
 
 
 
 
 
 
 
 
 
 
 
 
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
21
+
22
  # Set the working directory
23
+ WORKDIR /app
24
+
25
  # Copy the binary from the build stage
26
+ COPY --from=build /bin/github-mcp-server /usr/local/bin/github-mcp-server
27
+
28
+ # Copy the requirements file
29
+ COPY requirements.txt .
30
+
31
+ # Install the dependencies
32
+ RUN pip install --no-cache-dir -r requirements.txt
33
+
34
+ # Copy the app
35
+ COPY app.py .
36
+
37
+ # Expose the port the app will run on
38
+ EXPOSE 7860
39
+
40
+ # Run the web server
41
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]