Files
Kazier/backend/nlp-server/Dockerfile
T
2026-07-12 22:11:57 +02:00

22 lines
433 B
Docker

FROM python:3.10-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential curl \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir \
spacy \
fastapi \
uvicorn \
python-multipart
RUN python -m spacy download fr_core_news_md
COPY server.py /workspace/server.py
WORKDIR /workspace
EXPOSE 8080
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8080"]