data360-mcp-explorer / Dockerfile
Hugging Face Deployer
Deploy explorer to Hugging Face Spaces
0264bea
Raw
History Blame Contribute Delete
836 Bytes
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Install uv for fast package management
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Set working directory
WORKDIR /app
# Copy dependency configs
COPY pyproject.toml uv.lock ./
# Install python dependencies (exclude the project itself to cache dependencies)
RUN uv sync --frozen --no-dev --no-install-project
# Copy project source code
COPY . .
# Install the project itself
RUN uv sync --frozen --no-dev
# Ensure entrypoint is executable
RUN chmod +x /app/entrypoint.sh
# Expose the default Hugging Face Space port
EXPOSE 7860
# Environment variables
ENV PYTHONUNBUFFERED=1 \
PREFAB_BUNDLED_RENDERER=1
# Run the entrypoint script
CMD ["/app/entrypoint.sh"]