FROM node:19-slim RUN apt-get update && \ apt-get install -y \ bash \ git git-lfs \ wget curl procps \ htop vim nano && \ rm -rf /var/lib/apt/lists/* WORKDIR /app COPY --link ./ /app RUN npm i # The base image already creates a user with 1000, no need to call useradd RUN chown 1000 /app USER 1000 CMD ["node", "index.js"]