Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. FROM node:8.14.0-alpine
  2.  
  3. #creating and switch to tmp
  4. WORKDIR /tmp/
  5.  
  6. #copying the package and package-lock.json there
  7. COPY package*.json /tmp/
  8.  
  9. RUN npm install
  10. #RUN npm audit fix
  11. RUN npm update
  12. #when going into prod, switch to this forsenE
  13. #RUN npm install --only=production
  14.  
  15. #creating/switching to /opt/app
  16. WORKDIR /opt/app
  17.  
  18. RUN cp -a /tmp/node_modules /opt/app && mkdir lidl_modules && mkdir lidl_core
  19.  
  20. COPY *.js /opt/app/
  21. COPY lidl_modules/* lidl_modules/
  22. COPY lidl_core/* lidl_core/
  23.  
  24. #environnement variable we need
  25. ENV BOT_USERNAME=LIDLER_bot OAUTH_TOKEN=Jebaitedyouwontgetit ROOT_TWITCH_USERNAME=devoluti0n
  26.  
  27.  
  28. CMD ["node","app.js"]
  29. #CMD ["npm","start"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement