FROM node:lts RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app WORKDIR /home/node/.npm RUN chown -R 1000:1000 "/home/node/.npm" WORKDIR /home/node/app USER node COPY --chown=node:node . . RUN npm install EXPOSE 5000 CMD ["npm", "run", "dev"]