Skip to content

Commit

Permalink
Merge pull request #21 from haseebzaki-07/new_branch
Browse files Browse the repository at this point in the history
Added the Dockerfile
  • Loading branch information
PranavBarthwal authored Oct 29, 2024
2 parents 22a1aad + c1ed145 commit e44c183
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions templates/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Step 1: Use an official Node.js runtime as a parent image
FROM node:18-alpine

WORKDIR /app
COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 3000
ENV NODE_ENV=production

CMD ["npm", "start"]

0 comments on commit e44c183

Please sign in to comment.