20 lines
346 B
Docker
20 lines
346 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 requirements.txt /app
|
|
|
|
RUN pip install --upgrade pip
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
RUN python -m spacy download en_core_web_sm
|
|
|
|
COPY .. /app
|
|
|
|
CMD ["python3.12", "app.py"]
|