mirror of
https://github.com/pacnpal/markov-discord.git
synced 2025-12-20 03:01:04 -05:00
18 lines
352 B
Docker
18 lines
352 B
Docker
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" ] |