Monike123's picture
Update structural paths for server multi-mode deployment
6c22dda
Raw
History Blame Contribute Delete
493 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Install python dependencies from requirements
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy user repository into container
COPY . .
# Expose Space Port utilized by spaces platform
EXPOSE 7860
# Run FastAPI and Gradio app on port 7860
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]