mirror of
https://github.com/pacnpal/markov-discord.git
synced 2025-12-23 04:11:04 -05:00
Update 0.6.0: Docker support
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal 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" ]
|
||||
Reference in New Issue
Block a user