FROM python:3.10-slim
WORKDIR /app
RUN apt-get clean
RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*
COPY . .
RUN pip install --no-cache-dir flask gensim gunicorn numpy
EXPOSE 8018
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8018", "cemantle_api:app"]