FROM node:14.18.3-bullseye-slim AS builder COPY ./bbb-pads /bbb-pads RUN cd /bbb-pads && rm -r .git && npm install --production RUN chmod 777 /bbb-pads/config # ------------------------------ FROM node:14.18.3-bullseye-slim RUN apt update && apt install -y jq moreutils \ && useradd --uid 2003 --user-group bbb-pads COPY --from=builder /bbb-pads /bbb-pads USER bbb-pads COPY entrypoint.sh /entrypoint.sh ENTRYPOINT /entrypoint.sh