diff --git a/Dockerfile b/Dockerfile index cbfcb08..b5b0418 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,19 @@ RUN npm install -g expo-cli RUN npm i -f +# User creation +RUN useradd -U -m -r -o -u 1003 vfac + +# Install fixuid +RUN USER=vfac && \ + GROUP=vfac && \ + curl -SsL https://github.com/boxboat/fixuid/releases/download/v0.5/fixuid-0.5-linux-amd64.tar.gz | tar -C /usr/local/bin -xzf - && \ + chown root:root /usr/local/bin/fixuid && \ + chmod 4755 /usr/local/bin/fixuid && \ + mkdir -p /etc/fixuid && \ + printf "user: $USER\ngroup: $GROUP\n" > /etc/fixuid/config.yml +ENTRYPOINT ["fixuid", "-q"] + USER vfac:vfac CMD ["tail","-f","/dev/null"] \ No newline at end of file diff --git a/README.md b/README.md index dc34efb..9b793ec 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,11 @@ Each versions exist in Alpine version to limit the image size. 7 globals JS tools are available throught this container : -- NPM (6.13.6) +- NPM (7.5.2) - Grunt (1.3.2) - Gulp (4.0.2) -- Yarn (1.21.1) +- Yarn (1.22.5) - Typescript (3.7.5) -- Create-React-App (3.3.0) -- Nodemon (2.0.2) -- Expo-cli (3.11.9) \ No newline at end of file +- Create-React-App (4.0.2) +- Nodemon (2.0.7) +- Expo-cli (4.1.6) \ No newline at end of file