FROM node:alpine WORKDIR /app RUN echo "www-data:x:33:33:www-data:/app:/usr/sbin/nologin" >> /etc/passwd; echo "www-data:x:33:" >> /etc/group RUN chown www-data:www-data . -R COPY . /app/ RUN npm install USER www-data EXPOSE 15602 ENTRYPOINT [ "node", "index.js" ]