Intellispect / Dockerfile
shank
initial backend deployment
9cb4440
Raw
History Blame Contribute Delete
437 Bytes
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY . .
# HuggingFace Spaces requires port 7860
EXPOSE 7860
# Start the Flask app on port 7860
CMD ["python", "app.py"]