Twan07 commited on
Commit
12c44f7
·
verified ·
1 Parent(s): f85531c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,6 +1,10 @@
1
  FROM node:22
2
 
3
  USER root
 
 
 
 
4
  RUN apt-get update && apt-get install -y \
5
  git \
6
  sudo \
@@ -26,9 +30,6 @@ RUN chmod +x /start.sh
26
  RUN chown node:node /start.sh /home/node/app
27
 
28
  USER node
29
- RUN echo "node ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
30
- RUN echo "nameserver 8.8.8.8" > /tmp/resolv.conf
31
- RUN echo "nameserver 1.1.1.1" >> /tmp/resolv.conf
32
- RUN sudo sh -c 'echo -e "nameserver 1.1.1.1\nnameserver 8.8.8.8" > /etc/resolv.conf'
33
  EXPOSE 3000
34
  CMD ["/start.sh"]
 
1
  FROM node:22
2
 
3
  USER root
4
+ RUN echo "node ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
5
+ RUN echo "nameserver 8.8.8.8" > /tmp/resolv.conf
6
+ RUN echo "nameserver 1.1.1.1" >> /tmp/resolv.conf
7
+ RUN sudo sh -c 'echo -e "nameserver 1.1.1.1\nnameserver 8.8.8.8" > /etc/resolv.conf'
8
  RUN apt-get update && apt-get install -y \
9
  git \
10
  sudo \
 
30
  RUN chown node:node /start.sh /home/node/app
31
 
32
  USER node
33
+
 
 
 
34
  EXPOSE 3000
35
  CMD ["/start.sh"]