Spaces:
Build error
Build error
Upload Dockerfile
Browse files- 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
|
|
|
|
| 21 |
# Set the working directory
|
| 22 |
-
WORKDIR /
|
|
|
|
| 23 |
# Copy the binary from the build stage
|
| 24 |
-
COPY --from=build /bin/github-mcp-server
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|