added docker image for server-ml
This commit is contained in:
parent
9bee70c106
commit
601a7acb16
11
server-ml/Dockerfile
Normal file
11
server-ml/Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM python:3.11.6-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY main.py .
|
||||
|
||||
CMD ["python", "main.py"]
|
7
server-ml/docker-compose.yml
Normal file
7
server-ml/docker-compose.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
services:
|
||||
cspj-ml-server:
|
||||
image: cspj-ml-server
|
||||
container_name: cspj-ml-server
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5000:5000"
|
Loading…
Reference in a new issue