dockerisation
This commit is contained in:
parent
08f9f865c4
commit
9d82c861e7
2 changed files with 15 additions and 0 deletions
7
Dockerfile
Normal file
7
Dockerfile
Normal 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
8
compose.yml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
version: '3.8'
|
||||
services:
|
||||
cemantle:
|
||||
build: .
|
||||
container_name: cemantle_solver
|
||||
ports:
|
||||
- "8018:8018"
|
||||
restart: unless-stopped
|
||||
Loading…
Reference in a new issue