drivingbehavior / Dockerfile
vianshah's picture
Update Dockerfile
bf04632 verified
Raw
History Blame Contribute Delete
374 Bytes
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Expose port 7860 (Hugging Face Spaces default for Docker)
EXPOSE 7860
# Run the FastAPI server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]