FROM alpine ARG USER_NAME ARG USER_ID RUN echo "$USER_NAME($USER_ID):$GROUP($GID)" RUN apk --no-cache update && apk --no-cache add bash npm RUN npm install -g @angular/cli RUN adduser -h /home/$USER_NAME -D -s /bin/bash -u $USER_ID $USER_NAME USER $USER_NAME WORKDIR /app # add `/app/node_modules/.bin` to $PATH ENV PATH /app/node_modules/.bin:$PATH # start app CMD npm install && ng serve --host 0.0.0.0 --disable-host-check