Spaces:
Paused
Paused
Update Dockerfile
Browse files1212456783456781291011121314141515161717181819# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker# you will also find guides on how best to write your DockerfileFROM ubuntu:20.04
FROM python:3.9
RUN useradd -m -u 1000 userUSER userENV PATH="/home/user/.local/bin:$PATH"# Install Python and system dependenciesRUN apt-get update && apt-get install -y python3 python3-pip ffmpeg && apt-get clean
# Set working directoryWORKDIR /app
RUN apt-get update && apt-get install -y ffmpeg && apt-get clean# Copy application filesCOPY . /app
# Install Python dependenciesRUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user ./requirements.txt requirements.txtRUN pip install --no-cache-dir --upgrade -r requirements.txt# Expose the application portEXPOSE 8000
COPY --chown=user . /appCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]# Command to run the applicationCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]Dockerfile+13-12