tscdev commited on
Commit
8d6d625
·
verified ·
1 Parent(s): 57ae5cc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -36,7 +36,7 @@ RUN if [ -n "${NODE_JS_FILE}" ]; then wget -O /app/script.js "${NODE_JS_FILE}";
36
  RUN if [ -n "${JSON_FILE}" ]; then wget -O /app/package.json "${JSON_FILE}"; fi
37
 
38
  RUN if [ -f "/app/package.json" ]; then npm install; fi
39
- RUN ["/bin/bash", "-c", "npm install -g ws"]
40
- RUN ["/bin/bash", "-c", "npm install "]
41
  # Default command to run the application
42
  CMD ["/bin/bash", "-c", "node /app/script.js"]
 
36
  RUN if [ -n "${JSON_FILE}" ]; then wget -O /app/package.json "${JSON_FILE}"; fi
37
 
38
  RUN if [ -f "/app/package.json" ]; then npm install; fi
39
+ RUN ["/bin/bash", "-c", "cd /app && sudo npm install -g ws"]
40
+ RUN ["/bin/bash", "-c", "cd /app sudo npm install "]
41
  # Default command to run the application
42
  CMD ["/bin/bash", "-c", "node /app/script.js"]