iDevBuddy commited on
Commit
f638519
·
1 Parent(s): 1dc857d

deploy: Deploy Python AI service to clienttarget-python

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -12
Dockerfile CHANGED
@@ -1,14 +1,8 @@
1
- FROM node:20-alpine AS builder
2
  WORKDIR /app
3
- COPY package*.json ./
4
- RUN npm install --legacy-peer-deps
5
- COPY . .
6
- RUN npm run build
7
-
8
- FROM node:20-alpine
9
- WORKDIR /app
10
- COPY package*.json ./
11
- RUN npm install --only=production --legacy-peer-deps
12
- COPY --from=builder /app/dist ./dist
13
  EXPOSE 7860
14
- CMD ["node", "dist/index.js"]
 
1
+ FROM python:3.11-slim
2
  WORKDIR /app
3
+ COPY src/profiling/python-service/requirements.txt .
4
+ RUN pip install --no-cache-dir -r requirements.txt
5
+ COPY . /app
6
+ WORKDIR /app/src/profiling/python-service
 
 
 
 
 
 
7
  EXPOSE 7860
8
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]