Skip to content

Commit

Permalink
feat: added docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
Pulkitxm committed Sep 20, 2024
1 parent 345d211 commit f7949dd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.dockerignore

# Not needed as we are bundling the whole app
node_modules
npm-debug.log
# Log files
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
.next
.git
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18-alpine

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

EXPOSE 3000

CMD ["npm", "start"]

0 comments on commit f7949dd

Please sign in to comment.