mvp-router-api / Dockerfile
ethnmcl's picture
Update Dockerfile
c76f8f9 verified
raw
history blame contribute delete
458 Bytes
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
# Hugging Face Spaces injects PORT. Default fallback for local runs.
ENV PORT=7860
EXPOSE 7860
CMD ["bash", "-lc", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"]