tejani commited on
Commit
2bc9dbc
·
verified ·
1 Parent(s): 027549a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -17
Dockerfile CHANGED
@@ -1,18 +1,25 @@
1
- # Use Node.js base image
2
- FROM node:18
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Copy package.json and install dependencies
8
- COPY package.json .
9
- RUN npm install
10
-
11
- # Copy application files
12
- COPY . .
13
-
14
- # Expose port 7860
15
- EXPOSE 7860
16
-
17
- # Start the application
 
 
 
 
 
 
 
18
  CMD ["npm", "start"]
 
1
+ # Use Node.js 18 base image
2
+ FROM node:18
3
+
4
+ # Install build tools for node-pty
5
+ RUN apt-get update && apt-get install -y \
6
+ python3 \
7
+ make \
8
+ g++ \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Set working directory
12
+ WORKDIR /app
13
+
14
+ # Copy package.json and install dependencies
15
+ COPY package.json .
16
+ RUN npm install
17
+
18
+ # Copy application files
19
+ COPY . .
20
+
21
+ # Expose port 7860
22
+ EXPOSE 7860
23
+
24
+ # Start the application
25
  CMD ["npm", "start"]