mentalbertEmbedder / Dockerfile
pri2k
πŸ”§ Updated app.py to compute embeddings using MentalBERT
0774891
raw
history blame
427 Bytes
FROM python:3.11-slim
WORKDIR /app
# Copy files
COPY . .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Set Hugging Face cache location
ENV HF_HOME=/app/.cache/huggingface
ENV TRANSFORMERS_CACHE=$HF_HOME
ENV HF_DATASETS_CACHE=$HF_HOME
ENV HF_METRICS_CACHE=$HF_HOME
ENV HUGGINGFACE_HUB_CACHE=$HF_HOME
EXPOSE 7860
# Run the app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]