Spaces:
Running
Running
iDevBuddy commited on
Commit ·
f638519
1
Parent(s): 1dc857d
deploy: Deploy Python AI service to clienttarget-python
Browse files- Dockerfile +6 -12
Dockerfile
CHANGED
|
@@ -1,14 +1,8 @@
|
|
| 1 |
-
FROM
|
| 2 |
WORKDIR /app
|
| 3 |
-
COPY
|
| 4 |
-
RUN
|
| 5 |
-
COPY .
|
| 6 |
-
|
| 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 ["
|
|
|
|
| 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"]
|