intoai / Dockerfile
hello-aditya's picture
Upload 5 files
5c29cf9 verified
Raw
History Blame Contribute Delete
447 Bytes
FROM python:3.11-slim
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY app.py .
COPY static ./static
COPY data ./data
# Create data directory if it doesn't exist
RUN mkdir -p data
# Expose port 7860 (HuggingFace Spaces default)
EXPOSE 7860
# Run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]