Basti1110 commited on
Commit
bfde8c9
·
verified ·
1 Parent(s): 6d686c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -5
Dockerfile CHANGED
@@ -1,15 +1,22 @@
1
- FROM node:18
2
 
3
- WORKDIR /app
 
 
 
 
4
 
 
 
5
  COPY . .
6
 
 
 
 
 
7
  RUN npm install
8
 
9
  ENV PORT=7860
10
  EXPOSE 7860
11
 
12
  CMD ["npm", "start"]
13
-
14
- COPY requirements.txt .
15
- RUN pip install -r requirements.txt
 
1
+ FROM python:3.10-slim
2
 
3
+ # Install Node.js
4
+ RUN apt-get update && apt-get install -y curl gnupg && \
5
+ curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
6
+ apt-get install -y nodejs && \
7
+ apt-get clean && rm -rf /var/lib/apt/lists/*
8
 
9
+ # Create app directory
10
+ WORKDIR /app
11
  COPY . .
12
 
13
+ # Install Python deps
14
+ RUN pip install -r requirements.txt
15
+
16
+ # Install Node.js deps
17
  RUN npm install
18
 
19
  ENV PORT=7860
20
  EXPOSE 7860
21
 
22
  CMD ["npm", "start"]