Update 0.6.0: Docker support

This commit is contained in:
Charlie Laabs
2019-05-25 15:05:37 -05:00
parent 6f3268dc07
commit 3459dd7413
8 changed files with 533 additions and 532 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM keymetrics/pm2:latest-stretch
# Create app directory
WORKDIR /usr/src/markbot
# Install app dependencies
COPY package*.json ./
# If you are building your code for production
ENV NPM_CONFIG_LOGLEVEL warn
RUN npm ci --only=production
# Bundle app source
COPY . .
RUN mkdir config
RUN ls -al
CMD [ "pm2-runtime", "start", "ecosystem.config.js" ]