From 9d82c861e77a17e93b8e64e8ccb11362d6ffc8dc Mon Sep 17 00:00:00 2001 From: Didictateur Date: Mon, 2 Feb 2026 17:39:54 +0100 Subject: [PATCH] dockerisation --- Dockerfile | 7 +++++++ compose.yml | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8c59992 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.10-slim +WORKDIR /app +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"] \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..719f015 --- /dev/null +++ b/compose.yml @@ -0,0 +1,8 @@ +version: '3.8' +services: + cemantle: + build: . + container_name: cemantle_solver + ports: + - "8018:8018" + restart: unless-stopped \ No newline at end of file