fixed
This commit is contained in:
parent
445e09f55a
commit
66608ee633
11
Dockerfile
11
Dockerfile
@ -1,14 +1,17 @@
|
|||||||
FROM node:18-alpine
|
FROM node:18-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json package-lock.json ./
|
||||||
COPY package-lock.json .
|
|
||||||
|
|
||||||
|
# Install deps (including devDeps, which includes nodemon)
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
# Ensure the nodemon bin is executable
|
||||||
|
RUN chmod +x ./node_modules/.bin/nodemon
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
EXPOSE 5000
|
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