Spaces:
Sleeping
Sleeping
File size: 708 Bytes
62e82b2 0452a50 62e82b2 |
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 35 36 |
FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
--fix-missing \
build-essential \
curl \
git && \
rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt /tmp/requirements.txt
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r /tmp/requirements.txt
# Copy project files
COPY . .
# Ensure entrypoint script is executable
RUN chmod +x docker-entrypoint.sh
EXPOSE 7860 8000 8900
ENV API_PORT=8000 \
MCP_PORT=8900 \
GRADIO_PORT=7860
ENTRYPOINT ["./docker-entrypoint.sh"]
|