Dockerfile (373B)
1 FROM node:alpine 2 3 # Create app directory 4 WORKDIR /usr/bot/nyx 5 6 # Copy package.json and package-lock.json 7 COPY package*.json ./ 8 9 # Install packages 10 RUN npm install 11 12 # Copy the app code 13 COPY . . 14 15 # Build the project 16 RUN npm run all 17 18 # Expose ports 19 # EXPOSE 8080 20 21 # Run the application 22 CMD [ "node", "index.js" ] 23 # not sure what to run index.js or bot.js