forked from LegitDongo/MADBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 695 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Basic docker image for MADBot
# Usage:
# docker build -t madbot . # Build the docker Image
# docker run -d madbot # Launch MADBot (Daemon Mode)
#
# Please note that MADBot requires an access to the screenshot directory of Map-a-Droid
# This can be done easily using -v option to map a local DIR in both MAD and MADBot
#
FROM node:8
# Create app directory
WORKDIR /usr/src/app
# Set Environment Variable
ARG NTBA_FIX_319=1
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# Bundle app source
COPY . .
CMD [ "node", "start.js" ]