APKKP / Dockerfile
indahPurnamaSarii
first commit
7410938
raw
history blame contribute delete
273 Bytes
FROM python:3.9-slim
WORKDIR /code
COPY . .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN python download_model.py
RUN mkdir -p /app/.cache
ENV SENTENCE_TRANSFORMERS_HOME=/app/.cache
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "app:app"]