api: add all users

This commit is contained in:
Thomas Hobson 2021-02-22 23:15:04 +13:00
parent 920e6e7054
commit 809004ecf9
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
FROM node:15.8.0-alpine3.13
RUN apk add --no-cache gnupg tar bash coreutils util-linux
RUN apk add --no-cache gnupg tar bash coreutils shadow util-linux
RUN userdel -r node
RUN for i in $(seq 1000 1500); do \
groupadd -g $i runner$i && \
useradd -M runner$i -g $i -u $i ; \
done
ENV NODE_ENV=production
WORKDIR /piston_api