Spaces:
Sleeping
Sleeping
File size: 783 Bytes
24d6896 3454099 |
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 |
# 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"] |