chord-vision / Dockerfile
FlightSimulator101's picture
Update Dockerfile
92a2425 verified
Raw History Blame Contribute Delete
586 Bytes
# Minimal Python image
FROM python:3.10-slim
# Work directory inside the container
WORKDIR /app
# Install system deps (ffmpeg just in case we later add audio processing)
RUN apt-get update && apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy our FastAPI server code
COPY server.py .
# Hugging Face expects your app to listen on port 7860
ENV PORT=7860
# Start FastAPI with uvicorn
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]