From bef665c012d5fdf855cbd3d5b642aaff2d12348f Mon Sep 17 00:00:00 2001 From: Elad Laor Date: Mon, 11 Jul 2022 09:28:23 +0300 Subject: [PATCH] CR-11819 (#95) * new user * yarn * no yarn lock change * no yarn lock change --- Dockerfile | 4 ++++ service.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0d7b6446..53bc5f1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,4 +20,8 @@ RUN apk add --no-cache --virtual deps \ # copy app files COPY . ./ +RUN adduser -D -h /home/cfu -s /bin/bash cfu + +USER cfu + CMD ["node", "lib/index.js"] diff --git a/service.yaml b/service.yaml index f9c9a716..ac753972 100644 --- a/service.yaml +++ b/service.yaml @@ -1 +1 @@ -version: 1.8.1 +version: 1.8.2