From 7cecd079aa263f91f7f36c1ee238d32b184f0abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Fali=C3=A8s?= Date: Sun, 7 Feb 2021 15:52:10 +0100 Subject: [PATCH 1/2] Add user definition --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 From 3e74fcf5ae2ad5ad5742c8f43a70560a088f7954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Fali=C3=A8s?= Date: Sun, 7 Feb 2021 16:30:25 +0100 Subject: [PATCH 2/2] Update readme --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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