added docker image for server-ml

This commit is contained in:
Vomitblood 2025-02-13 02:44:22 +08:00
parent 9bee70c106
commit 601a7acb16
2 changed files with 18 additions and 0 deletions

11
server-ml/Dockerfile Normal file
View 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"]

View file

@ -0,0 +1,7 @@
services:
cspj-ml-server:
image: cspj-ml-server
container_name: cspj-ml-server
restart: unless-stopped
ports:
- "5000:5000"