quote-caster / Dockerfile
Ubuntu
Commit initial quote caster ui
0108eb5
raw
history blame
657 Bytes
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Install Python packages
RUN pip install --no-cache-dir -r requirements.txt
# Download Hugging Face model weights on build (optional to avoid slow startup)
RUN python -c "from transformers import AutoTokenizer, AutoModel; \
AutoTokenizer.from_pretrained('aNameNobodyChose/quote-caster-encoder'); \
AutoModel.from_pretrained('aNameNobodyChose/quote-caster-encoder')"
# Gradio default port
EXPOSE 7860
# Run the Gradio app
CMD ["python", "app.py"]