Spaces:
Runtime error
Runtime error
File size: 512 Bytes
4eefb34 bdd6e99 117ead1 4eefb34 9d230ee 7ddc2f8 66c8686 2fc13f2 4eefb34 7ddc2f8 117ead1 4eefb34 117ead1 bdd6e99 4eefb34 3f5be2c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Base image
FROM python:3.10-slim
# Install system dependencies\ nRUN apt-get update && \
RUN apt-get update && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*
# Copy and install Python dependencies
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
# Set working directory
WORKDIR /app
COPY app.py /app/app.py
# Expose port (Gradio/Streamlit default)
EXPOSE 7860
# Launch
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |