FROM node:19.9.0
# Create app directory
WORKDIR /usr/src/app
# 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
# Bundle app source
COPY . .
EXPOSE 3000
CMD [ "npm", "start" ]
run docker build . -t <your username>/chat-with-gpt
docker run --name openaccessgpt -d -p 3005:3000 <your username>/chat-with-gpt
PS: Build takes ~2 minutes on performing machines, don't give it up, give it time :-)
create a Dockerfile
run docker build . -t <your username>/chat-with-gpt
docker run --name openaccessgpt -d -p 3005:3000 <your username>/chat-with-gpt
PS: Build takes ~2 minutes on performing machines, don't give it up, give it time :-)