n8n / Dockerfile
Mohammedallyl's picture
Update Dockerfile
5ceb50d verified
raw
history blame contribute delete
569 Bytes
# Use slim base for smaller image
FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# System deps: ffmpeg for audio format conversion
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Workdir
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY . .
# Expose Spaces default port
EXPOSE 7860
# Start FastAPI with Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]