Spaces:
Sleeping

webchat / Dockerfile
Parols's picture
Upload 8 files
b6aff9a verified
Raw History Blame Contribute Delete
503 Bytes
# Use official Python base image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy project files
COPY . /app
# Install OS dependencies for ffmpeg
RUN apt-get update && apt-get install -y ffmpeg && apt-get clean
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose FastAPI port
EXPOSE 8000
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Start the app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]