Skip to content

Commit

Permalink
add Dockerfile (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjain-7 authored Oct 31, 2023
1 parent cf7df24 commit a2f618a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.git/
.gitignore
.next/
.dockerignore
Dockerfile
node_modules/
docker-compose.yml
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:alpine

WORKDIR /usr/app

RUN npm install --global pm2

COPY ./package*.json ./

RUN npm ci

COPY ./ ./

RUN npm run build

USER node

CMD [ "pm2-runtime", "npm", "--", "start" ]

1 comment on commit a2f618a

@vercel
Copy link

@vercel vercel bot commented on a2f618a Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tpc-frontend – ./

tpc-frontend-six.vercel.app
tpc-frontend-git-main-rojgar.vercel.app
tpc-frontend-rojgar.vercel.app

Please sign in to comment.