Skip to content

Commit

Permalink
Hot reload (Expreejs) in debug mode (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin27may authored Dec 7, 2023
1 parent 5d276d7 commit 7e20d88
Show file tree
Hide file tree
Showing 4 changed files with 375 additions and 371 deletions.
17 changes: 5 additions & 12 deletions api/debug.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,12 @@ FROM node:21-alpine

WORKDIR /api

RUN chown -R node:node /api
COPY package*.json ./

# Copy dependency definitions
COPY --chown=node:node package*.json .

RUN npm i

RUN chmod -R 777 node_modules

RUN npm install -g nodemon
RUN npm i --legacy-peer-deps --unsafe-perm=true --allow-root

COPY . /api/
# Expose the port the app runs in
EXPOSE 3000
EXPOSE 3000 9229


# Serve the app
CMD [ "npm", "run", "dev-server" ]
Loading

0 comments on commit 7e20d88

Please sign in to comment.