agent_mcp_server / Dockerfile
abubasith86's picture
Update Dockerfile
3454099 verified
raw
history blame contribute delete
783 Bytes
# Use Python base image
FROM python:3.11-slim
# Environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app
# Install git and other system dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Clone your GitHub repository directly
RUN git clone https://github.com/abubasith456/agent-mcp-server.git .
# Create and activate virtual environment
RUN python -m venv .venv
ENV PATH="/app/.venv/bin:$PATH"
# Upgrade pip and install dependencies
RUN .venv/bin/pip install --upgrade pip
RUN .venv/bin/pip install --no-cache-dir -r requirements.txt
# Expose port
EXPOSE 8000
# Run application with uvicorn
CMD ["python", "main.py"]