-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
joyja
committed
Jun 15, 2020
1 parent
bd41c7c
commit 1ab5744
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM keymetrics/pm2:latest-stretch | ||
|
||
# Bundle APP files | ||
COPY src src/ | ||
COPY package.json . | ||
COPY ecosystem.config.js . | ||
|
||
# Install app dependencies | ||
ENV NPM_CONFIG_LOGLEVEL warn | ||
RUN npm install --production | ||
|
||
# Expose the listening port of your app | ||
EXPOSE 4000 | ||
|
||
# Show current folder structure in logs | ||
CMD [ "pm2-runtime", "start", "ecosystem.config.js" ] |