Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
Adding docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
sandoche committed Aug 9, 2022
1 parent 7b9b501 commit ba2c813
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:16

WORKDIR /usr/src/app

RUN npm install pm2 -g

COPY package*.json ./

RUN npm install

COPY . .

CMD ["pm2-runtime", "ecosystem.config.js"]
6 changes: 6 additions & 0 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = [
{
script: 'bin/www',
name: 'FUND3R ADMIN',
},
];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "admin.grants",
"version": "0.1.0",
"version": "0.1.4",
"scripts": {
"start": "node ./bin/www",
"dev": "nodemon ./bin/www",
Expand Down

0 comments on commit ba2c813

Please sign in to comment.