sentimind-api / Dockerfile
alkapitanofaras's picture
Upload 3 files
f077ae8 verified
raw
history blame contribute delete
405 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY app.py .
# Pre-download the model during build so it's ready instantly
RUN python -c "from transformers import pipeline; pipeline('sentiment-analysis', model='w11wo/indonesian-roberta-base-sentiment-classifier')"
EXPOSE 7860
CMD ["python", "app.py"]