git repo I used : https://github.com/rushitpatel21/chat-gpt-clone.git
steps included :
1 make directory
2 git clone
3 make dockerfile
4 build image
5 run
6 test on local
step-1
In this step, we will first make a separate folder/directory
mkdir gpt
cd gpt
step-2
In this step, we will clone the git repo in our local
***ps: don't forget to go inside the cloned repo ****
git clone https://github.com/rushitpatel21/chat-gpt-clone.git
cd chat-gpt-clone/
step-3
In this we will try to make a docker file
vim Dockerfile
FROM node:latest
# Create app directory
WORKDIR /home/gauri/gpt/chat-gpt-clone
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . .
EXPOSE 3000
CMD [ "npm", "start" ]
step-4
In this step, we will make an image
docker build -t gauriyadav1504/chat-gpt .
step-5
in this we will run the image
docker run -p 3000:3000 -d gauriyadav1504/chat-gpt
step-6
NOW TEST THE OUTPUT
TADDDAAAAAAA!!!!!!
****************THANKS***************
CONTACT ME ON
Email: gaurieyadav15402@gmail.com