1tbfree commited on
Commit
88002f3
·
verified ·
1 Parent(s): b54caf4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -8,7 +8,7 @@ RUN apt-get update && \
8
 
9
  # Install Node.js
10
  RUN apt-get install -y nodejs npm neofetch sudo
11
-
12
  # Set the working directory
13
  WORKDIR /app
14
 
@@ -23,6 +23,6 @@ COPY . .
23
 
24
  # Expose the port
25
  EXPOSE 7860
26
-
27
  # Run the application
 
28
  CMD ["node", "server.js"]
 
8
 
9
  # Install Node.js
10
  RUN apt-get install -y nodejs npm neofetch sudo
11
+ RUN echo "ubuntu ALL=(ALL) NOPASSWD: /usr/bin/apt, /usr/bin/apt-get, /usr/bin/dpkg" > /etc/sudoers.d/ubuntu && chmod 440 /etc/sudoers.d/ubuntu
12
  # Set the working directory
13
  WORKDIR /app
14
 
 
23
 
24
  # Expose the port
25
  EXPOSE 7860
 
26
  # Run the application
27
+ USER root
28
  CMD ["node", "server.js"]