-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 981 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM python:3.11-slim
# Install curl for downloading revela binary
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Determine architecture and download appropriate revela binary
RUN ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then \
REVELA_ARCH="x86_64-unknown-linux-gnu"; \
elif [ "$ARCH" = "aarch64" ]; then \
REVELA_ARCH="aarch64-unknown-linux-gnu"; \
else \
echo "Unsupported architecture: $ARCH" && exit 1; \
fi && \
curl -L -o /usr/local/bin/revela "https://github.com/verichains/revela/releases/download/v1.0.0/revela-${REVELA_ARCH}" && \
chmod +x /usr/local/bin/revela
# Set working directory
WORKDIR /app
# Copy requirements first for better layer caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY . .
# Expose port (FastMCP default)
EXPOSE 8000
# Run the MCP server
CMD ["python", "server.py"]