diff --git a/api/Dockerfile b/api/Dockerfile index 3b07adf..268d713 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -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