GoGma commited on
Commit
cd96239
·
verified ·
1 Parent(s): b469e55

Update Dockerfile

Browse files

fix: backend dockerfile for sofia-ai.

Files changed (1) hide show
  1. Dockerfile +15 -12
Dockerfile CHANGED
@@ -1,20 +1,23 @@
1
- # Use Node.js base image
2
- FROM node:18-alpine
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Install git
8
- RUN apk add --no-cache git
9
 
10
- # Clone the GitHub repository
11
- RUN git clone https://github.com/Gmagl/agente.git .
 
 
 
 
 
12
 
13
- # Install dependencies
14
- RUN npm install
 
 
 
15
 
16
- # Expose the port the app runs on
17
  EXPOSE 7860
18
 
19
- # Start the application
20
- CMD ["npm", "start"]
 
1
+ FROM python:3.10-slim
 
2
 
 
3
  WORKDIR /app
4
 
5
+ ENV DEBIAN_FRONTEND=noninteractive
 
6
 
7
+ RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ git \
9
+ ffmpeg \
10
+ libsm6 \
11
+ libxext6 \
12
+ libgl1 \
13
+ && rm -rf /var/lib/apt/lists/*
14
 
15
+ COPY requirements.txt .
16
+
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ COPY . .
20
 
 
21
  EXPOSE 7860
22
 
23
+ CMD ["python", "api.py"]