Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files4 unmodified lines5678910112 unmodified lines141516174 unmodified linesWORKDIR /app# Install system dependencies (optional, depending on the need for certain Python packages)RUN apt-get update && apt-get install -y build-essential git libglib2.0-0 libsm6 libxrender1 libxext6 libjpeg-dev zlib1g-dev && rm -rf /var/lib/apt/lists/*# Copy all project files into the working directoryCOPY . .2 unmodified linesRUN pip install --upgrade pip && \pip install --no-cache-dir -r requirements.txt# No need to expose ports or manually run uvicorn here4 unmodified lines5678910112 unmodified lines14151617181920214 unmodified linesWORKDIR /app# Install system dependencies (optional, depending on the need for certain Python packages)RUN apt-get update && apt-get install -y build-essential git && rm -rf /var/lib/apt/lists/*# Copy all project files into the working directoryCOPY . .2 unmodified linesRUN pip install --upgrade pip && \pip install --no-cache-dir -r requirements.txt# Expose the port FastAPI will run on (update to match the port in your uvicorn command)EXPOSE 8000# Run the FastAPI app using uvicorn with 4 workersCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]
Dockerfile+6-2