From a8243f0e7342b9c5f9cd5bbe911f8e5c34e3ef0c Mon Sep 17 00:00:00 2001 From: "edson.siqueira@dnx.solutions" Date: Wed, 20 Jul 2022 11:24:55 -0300 Subject: [PATCH 1/4] Updating libs and install aws-cli on image --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 44dac50..d8aba98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,12 @@ FROM node:16-alpine WORKDIR /work -RUN apk add --no-cache \ +RUN apk --no-cache update && \ + apk add --no-cache \ + python3 \ + python3-dev \ + py-pip \ + ca-certificates \ chromium \ nss \ freetype \ @@ -14,6 +19,10 @@ RUN apk add --no-cache \ gettext \ bash +RUN pip --no-cache-dir install awscli virtualenv && \ + update-ca-certificates && \ + rm -rf /var/cache/apk/* + ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser From a3193ce03b9eef4c8b8ff7cddf4b040c95db6fa3 Mon Sep 17 00:00:00 2001 From: "edson.siqueira@dnx.solutions" Date: Wed, 20 Jul 2022 12:00:26 -0300 Subject: [PATCH 2/4] Fixing HadoLint --- Dockerfile | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index d8aba98..c672e80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,15 @@ FROM node:16-alpine +ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ + PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser + WORKDIR /work +COPY src/config.tpl config.tpl +COPY src/docker-entrypoint.sh /bin/docker-entrypoint.sh + RUN apk --no-cache update && \ - apk add --no-cache \ + apk --no-cache add \ python3 \ python3-dev \ py-pip \ @@ -17,22 +23,13 @@ RUN apk --no-cache update && \ nodejs \ yarn \ gettext \ - bash - -RUN pip --no-cache-dir install awscli virtualenv && \ + icu-data-full \ + bash && \ + pip3 --no-cache-dir install awscli virtualenv setuptools dnxsso boto3 && \ update-ca-certificates && \ - rm -rf /var/cache/apk/* - -ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ - PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser - -RUN npm install -g aws-azure-login@3.4.0 - -RUN mkdir /root/.aws - -COPY src/config.tpl config.tpl - -COPY src/docker-entrypoint.sh /bin/docker-entrypoint.sh -RUN chmod +x /bin/docker-entrypoint.sh + rm -rf /var/cache/apk/* && \ + npm install -g aws-azure-login@3.4.0 && \ + mkdir /root/.aws && \ + chmod +x /bin/docker-entrypoint.sh ENTRYPOINT ["/bin/docker-entrypoint.sh"] \ No newline at end of file From a69e2c65d5fbd9ddc9cc7e09fc20e6a43c5df45a Mon Sep 17 00:00:00 2001 From: "edson.siqueira@dnx.solutions" Date: Wed, 20 Jul 2022 12:07:26 -0300 Subject: [PATCH 3/4] Fixing HadoLint --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c672e80..12eab2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,6 @@ RUN apk --no-cache update && \ nodejs \ yarn \ gettext \ - icu-data-full \ bash && \ pip3 --no-cache-dir install awscli virtualenv setuptools dnxsso boto3 && \ update-ca-certificates && \ From 819899c3486da05cf362e07d67221bf2f93babc3 Mon Sep 17 00:00:00 2001 From: "edson.siqueira@dnx.solutions" Date: Wed, 20 Jul 2022 23:44:35 -0300 Subject: [PATCH 4/4] Set awscli version --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 12eab2a..f5142f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ RUN apk --no-cache update && \ yarn \ gettext \ bash && \ - pip3 --no-cache-dir install awscli virtualenv setuptools dnxsso boto3 && \ + pip3 --no-cache-dir install 'awscli<2.7.17' --upgrade && \ update-ca-certificates && \ rm -rf /var/cache/apk/* && \ npm install -g aws-azure-login@3.4.0 && \