fixed
This commit is contained in:
parent
445e09f55a
commit
66608ee633
11
Dockerfile
11
Dockerfile
@ -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"]
|
||||
Loading…
x
Reference in New Issue
Block a user