Skip to content

Commit

Permalink
🆕 Add Dockerfile for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed May 12, 2021
1 parent 398e686 commit d5ef727
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ yarn-error.log*
# Next.js
*/.next

.env
.env
16 changes: 16 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:14

# create & set working directory
WORKDIR /app

# copy source files
COPY . /app

# install dependencies
RUN npm install

RUN npm i pm2 -g

# start app
EXPOSE 8080
CMD pm2 start --name minterbackend server.js -i max

0 comments on commit d5ef727

Please sign in to comment.