pse2_ff/project/backend/spacy-service/Dockerfile

18 lines
318 B
Docker

FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
g++ \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY .. /app
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
RUN python -m spacy download en_core_web_sm
CMD ["python3.12", "app.py"]