FROM node:latest RUN useradd -m kalip USER kalip ENV HOME=/home/kalip PORT=7860 WORKDIR $HOME/app COPY package.json . RUN npm install COPY . . COPY --chown=kalip . $HOME/app RUN chmod -R 777 $HOME EXPOSE 7860 CMD ["node", "index.js"]