This commit is contained in:
Jonathan Jara 2025-04-22 22:19:31 -07:00
parent 445e09f55a
commit 66608ee633

View File

@ -1,14 +1,17 @@
FROM node:18-alpine
WORKDIR /app
COPY package.json .
COPY package-lock.json .
COPY package.json package-lock.json ./
# Install deps (including devDeps, which includes nodemon)
RUN npm install
# Ensure the nodemon bin is executable
RUN chmod +x ./node_modules/.bin/nodemon
COPY . .
EXPOSE 5000
CMD ["npx", "nodemon", "app.js"]
# Now npx can invoke it without permission issues
CMD ["node", "app.js"]