resume-analyzer-api / Dockerfile
koyelog's picture
Update Dockerfile
31c373c verified
Raw
History Blame Contribute Delete
536 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt && \
python -m spacy download en_core_web_sm
COPY . .
RUN python -c "from transformers import pipeline; pipeline('ner', model='dslim/bert-base-NER', grouped_entities=True)" || true
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]