RevSocial/Dockerfile
Jonathan Jara 66608ee633 fixed
2025-04-22 22:19:31 -07:00

17 lines
326 B
Docker

FROM node:18-alpine
WORKDIR /app
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
# Now npx can invoke it without permission issues
CMD ["node", "app.js"]