superspace / Dockerfile
affanthinks's picture
Upload folder using huggingface_hub
58c1d87 verified
raw
history blame contribute delete
394 Bytes
# Base image with Python
FROM python:3.10-slim
# Set working directory inside container
WORKDIR /app
# Copy requirements first (for caching)
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy all project files (API + model)
COPY . .
# Expose port for Flask
EXPOSE 7860
# Run the Flask app
CMD ["python", "app.py"]