dockerisation

This commit is contained in:
Didictateur 2026-02-02 17:39:54 +01:00
parent 08f9f865c4
commit 9d82c861e7
2 changed files with 15 additions and 0 deletions

7
Dockerfile Normal file
View file

@ -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"]

8
compose.yml Normal file
View file

@ -0,0 +1,8 @@
version: '3.8'
services:
cemantle:
build: .
container_name: cemantle_solver
ports:
- "8018:8018"
restart: unless-stopped