skin / Dockerfile
Kalyangotimothy
new
217a100
raw
history blame contribute delete
592 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gcc \
g++ \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first (for better caching)
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create model directory
RUN mkdir -p tinyllama-finetuned-skin
# Expose Hugging Face Spaces port
EXPOSE 7860
# Start Gradio app for Hugging Face Spaces
CMD ["python", "app.py"]