generated from az-digital/template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/docker/node-16.20.2-bullseye-slim
- Loading branch information
Showing
3 changed files
with
723 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:16.20.2-bullseye-slim | ||
FROM --platform=linux/amd64 node:20.11.0-bookworm-slim | ||
|
||
ENV LANG C.UTF-8 | ||
|
||
|
@@ -16,22 +16,37 @@ ENV NO_UPDATE_NOTIFIER 1 | |
|
||
WORKDIR $AZ_ICONS_SOURCE_DIR | ||
|
||
# COPY "package.json" "$AZ_ICONS_FROZEN_DIR"/ | ||
COPY "package.json" "$AZ_ICONS_FROZEN_DIR"/ | ||
|
||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends -y \ | ||
git \ | ||
python3 \ | ||
python3-pip \ | ||
python3-setuptools \ | ||
python3-wheel \ | ||
rsync \ | ||
ca-certificates-java \ | ||
curl \ | ||
git \ | ||
jq \ | ||
openjdk-17-jre-headless \ | ||
rsync \ | ||
unzip \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& pip3 install 'awscli~=1.19.41' \ | ||
&& cd "${AZ_ICONS_FROZEN_DIR}" \ | ||
&& npm config set cache='/tmp/.npm' \ | ||
&& chmod 755 /root \ | ||
&& touch /root/.npmrc \ | ||
&& chmod 644 /root/.npmrc \ | ||
&& npm install -g [email protected] \ | ||
&& npm install --location=global [email protected] \ | ||
&& curl 'https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip' -o /tmp/awscliv2.zip \ | ||
&& unzip -d /tmp /tmp/awscliv2.zip \ | ||
&& /tmp/aws/install \ | ||
&& rm /tmp/awscliv2.zip \ | ||
&& rm -Rf /tmp/aws | ||
|
||
WORKDIR $AZ_ICONS_FROZEN_DIR | ||
|
||
RUN mkdir /home/node/.npm \ | ||
&& chown node:node /home/node/.npm \ | ||
&& npm config set cache='/home/node/.npm' \ | ||
&& npm install \ | ||
&& find node_modules -name '.DS_Store' -exec rm {} \; | ||
&& find node_modules -name '.DS_Store' -exec rm {} \; \ | ||
&& chown -R node:node "$AZ_ICONS_FROZEN_DIR" | ||
|
||
USER node:node | ||
|
||
WORKDIR $AZ_ICONS_SOURCE_DIR |
Oops, something went wrong.