From 79d899bde2dad737a303562e3773d9f3af8d64af Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Fri, 30 Dec 2022 07:38:14 +0000 Subject: [PATCH] fix accounts --- Accounts/Dockerfile.tpl | 2 ++ AdminDashboard/Dockerfile.tpl | 1 + Alert/Dockerfile.tpl | 1 + ApiDocs/Dockerfile.tpl | 1 + Dashboard/Dockerfile.tpl | 1 + DashboardAPI/Dockerfile.tpl | 1 + File/Dockerfile.tpl | 1 + Haraka/Dockerfile.tpl | 1 + HelmChart/Dockerfile.tpl | 1 + Home/Dockerfile.tpl | 1 + HttpTestServer/Dockerfile.tpl | 1 + Identity/Dockerfile.tpl | 1 + Integration/Dockerfile.tpl | 1 + Licensing/Dockerfile.tpl | 1 + Mail/Dockerfile.tpl | 1 + Probe/Dockerfile.tpl | 1 + ProbeAPI/Dockerfile.tpl | 1 + Realtime/Dockerfile.tpl | 1 + StatusPage/Dockerfile.tpl | 1 + Workers/Dockerfile.tpl | 1 + 20 files changed, 21 insertions(+) diff --git a/Accounts/Dockerfile.tpl b/Accounts/Dockerfile.tpl index 5f7c3522f1..0b3bb88024 100755 --- a/Accounts/Dockerfile.tpl +++ b/Accounts/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl @@ -67,6 +68,7 @@ RUN npm install # - 3003: accounts EXPOSE 3003 +RUN chown -R 1000:1000 "/root/.npm" {{ if eq .Env.ENVIRONMENT "development" }} #Run the app diff --git a/AdminDashboard/Dockerfile.tpl b/AdminDashboard/Dockerfile.tpl index 19d230f8fb..17c98436d8 100755 --- a/AdminDashboard/Dockerfile.tpl +++ b/AdminDashboard/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/Alert/Dockerfile.tpl b/Alert/Dockerfile.tpl index fd838ce07d..bea55f5eb2 100644 --- a/Alert/Dockerfile.tpl +++ b/Alert/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/ApiDocs/Dockerfile.tpl b/ApiDocs/Dockerfile.tpl index ea78d4a02d..c5faa84f39 100755 --- a/ApiDocs/Dockerfile.tpl +++ b/ApiDocs/Dockerfile.tpl @@ -1,5 +1,6 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/Dashboard/Dockerfile.tpl b/Dashboard/Dockerfile.tpl index bcd66511fc..e250456873 100755 --- a/Dashboard/Dockerfile.tpl +++ b/Dashboard/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/DashboardAPI/Dockerfile.tpl b/DashboardAPI/Dockerfile.tpl index 0be31ee104..c2275935b0 100755 --- a/DashboardAPI/Dockerfile.tpl +++ b/DashboardAPI/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/File/Dockerfile.tpl b/File/Dockerfile.tpl index 0c82df9eb6..4ec4f6ba89 100644 --- a/File/Dockerfile.tpl +++ b/File/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/Haraka/Dockerfile.tpl b/Haraka/Dockerfile.tpl index f773247b4d..40385ab473 100644 --- a/Haraka/Dockerfile.tpl +++ b/Haraka/Dockerfile.tpl @@ -1,4 +1,5 @@ FROM node:18-alpine +USER root ARG PORT=25 diff --git a/HelmChart/Dockerfile.tpl b/HelmChart/Dockerfile.tpl index 96e60dac50..c666f1954b 100755 --- a/HelmChart/Dockerfile.tpl +++ b/HelmChart/Dockerfile.tpl @@ -1,5 +1,6 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/Home/Dockerfile.tpl b/Home/Dockerfile.tpl index 5ee2398b97..d60570bf16 100755 --- a/Home/Dockerfile.tpl +++ b/Home/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root #SET ENV Variables. ENV PRODUCTION=true diff --git a/HttpTestServer/Dockerfile.tpl b/HttpTestServer/Dockerfile.tpl index 4220cad8c8..9092d4a2b6 100755 --- a/HttpTestServer/Dockerfile.tpl +++ b/HttpTestServer/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/Identity/Dockerfile.tpl b/Identity/Dockerfile.tpl index dd4b03b7da..109c936ffc 100644 --- a/Identity/Dockerfile.tpl +++ b/Identity/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/Integration/Dockerfile.tpl b/Integration/Dockerfile.tpl index dedd1c2872..dbd39f0fc8 100644 --- a/Integration/Dockerfile.tpl +++ b/Integration/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/Licensing/Dockerfile.tpl b/Licensing/Dockerfile.tpl index 3a506f10c2..f7d822f1f4 100644 --- a/Licensing/Dockerfile.tpl +++ b/Licensing/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/Mail/Dockerfile.tpl b/Mail/Dockerfile.tpl index b5c7dd3cef..25314c7485 100755 --- a/Mail/Dockerfile.tpl +++ b/Mail/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/Probe/Dockerfile.tpl b/Probe/Dockerfile.tpl index 25bb58066d..905052f2af 100755 --- a/Probe/Dockerfile.tpl +++ b/Probe/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/ProbeAPI/Dockerfile.tpl b/ProbeAPI/Dockerfile.tpl index 7691342973..6d2b7d531e 100755 --- a/ProbeAPI/Dockerfile.tpl +++ b/ProbeAPI/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/Realtime/Dockerfile.tpl b/Realtime/Dockerfile.tpl index a8172a2835..3324e1e73e 100755 --- a/Realtime/Dockerfile.tpl +++ b/Realtime/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root #SET ENV Variables ENV PRODUCTION=true diff --git a/StatusPage/Dockerfile.tpl b/StatusPage/Dockerfile.tpl index 030f3ec340..b824071317 100755 --- a/StatusPage/Dockerfile.tpl +++ b/StatusPage/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl diff --git a/Workers/Dockerfile.tpl b/Workers/Dockerfile.tpl index b4be6fdebf..e0c5187f2e 100755 --- a/Workers/Dockerfile.tpl +++ b/Workers/Dockerfile.tpl @@ -4,6 +4,7 @@ # Pull base image nodejs image. FROM node:18-alpine +USER root # Install bash. RUN apk update && apk add bash && apk add curl