Skip to content

Instantly share code, notes, and snippets.

@KittyKatt
Created November 7, 2019 03:02
Show Gist options
  • Save KittyKatt/4595de8dae9942eb45bb534c4b2d0b15 to your computer and use it in GitHub Desktop.
Save KittyKatt/4595de8dae9942eb45bb534c4b2d0b15 to your computer and use it in GitHub Desktop.
# base our image on latest node
FROM node:latest
# create the bot directory
RUN mkdir -p /usr/src/bot
RUN mkdir -p /usr/src/bot/img
WORKDIR /usr/src/bot
# copy package.json and install dependencies
COPY package.json /usr/src/bot
RUN npm install
# copy bot files
COPY app.js settings.json /usr/src/bot/
COPY img /usr/src/bot/img
# start bot
CMD ["node", "app.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment