greek-summarizer / Dockerfile
gmav's picture
Create Dockerfile
acd3306 verified
raw
history blame contribute delete
446 Bytes
FROM python:3.10-slim
ENV HF_HOME=/app/cache
ENV TRANSFORMERS_CACHE=/app/cache
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Κατέβασμα μοντέλου κατά το build
RUN python -c "from transformers import pipeline; pipeline('summarization', model='IMISLab/GreekT5-mt5-small-greeksum')"
COPY app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]