tejani commited on
Commit
64f269d
·
verified ·
1 Parent(s): 55e95e5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,13 +1,11 @@
1
  # Use Node.js 18 base image
2
  FROM node:18
3
 
4
- USER root
5
-
6
- # Install build tools for node-pty
7
  RUN apt-get update && apt-get install -y \
8
  python3 \
 
9
  make \
10
- sudo \
11
  g++ \
12
  && rm -rf /var/lib/apt/lists/*
13
 
@@ -21,6 +19,9 @@ RUN npm install
21
  # Copy application files
22
  COPY . .
23
 
 
 
 
24
  # Expose port 7860
25
  EXPOSE 7860
26
 
 
1
  # Use Node.js 18 base image
2
  FROM node:18
3
 
4
+ # Install build tools for node-pty and python3-pip
 
 
5
  RUN apt-get update && apt-get install -y \
6
  python3 \
7
+ python3-pip \
8
  make \
 
9
  g++ \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
19
  # Copy application files
20
  COPY . .
21
 
22
+ # Ensure the container runs as root
23
+ USER root
24
+
25
  # Expose port 7860
26
  EXPOSE 7860
27