AgusSLC/Mobile_App_Shipping
0
1FROM python:3.12-slim2 3# Install system dependencies4RUN apt-get update && apt-get install -y --no-install-recommends \5 curl \6 && rm -rf /var/lib/apt/lists/*7 8# Install uv9RUN pip install uv10 11WORKDIR /app12 13# Copy dependency files first (layer caching)14COPY pyproject.toml uv.lock ./15 16# Copy source code17COPY src/ src/18 19# Install dependencies from lock file20RUN uv sync --frozen --no-dev21 22# Ensure the static directory exists for generated mockup images23RUN mkdir -p src/mobile_app_shipping/static24 25# HF Spaces requires port 786026ENV PORT=786027# Skip auto-opening the browser28ENV ENV=production29# Unbuffered output so logs appear in real time30ENV PYTHONUNBUFFERED=131 32EXPOSE 786033 34CMD ["uv", "run", "kickoff"]35 