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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -36,6 +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
- CMD ["/bin/bash", "-c", "npm install -g ws"]
 
40
  # Default command to run the application
41
  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", "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"]