Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM node:8.14.0-alpine
- #creating and switch to tmp
- WORKDIR /tmp/
- #copying the package and package-lock.json there
- COPY package*.json /tmp/
- RUN npm install
- #RUN npm audit fix
- RUN npm update
- #when going into prod, switch to this forsenE
- #RUN npm install --only=production
- #creating/switching to /opt/app
- WORKDIR /opt/app
- RUN cp -a /tmp/node_modules /opt/app && mkdir lidl_modules && mkdir lidl_core
- COPY *.js /opt/app/
- COPY lidl_modules/* lidl_modules/
- COPY lidl_core/* lidl_core/
- #environnement variable we need
- ENV BOT_USERNAME=LIDLER_bot OAUTH_TOKEN=Jebaitedyouwontgetit ROOT_TWITCH_USERNAME=devoluti0n
- CMD ["node","app.js"]
- #CMD ["npm","start"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement