Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/docker/node-16.20.2-bullseye-slim
Browse files Browse the repository at this point in the history
  • Loading branch information
trackleft authored Feb 17, 2024
2 parents 495fb5a + f519bd7 commit 5656a4d
Show file tree
Hide file tree
Showing 3 changed files with 723 additions and 230 deletions.
41 changes: 28 additions & 13 deletions Dockerfile
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

Expand All @@ -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
Loading

0 comments on commit 5656a4d

Please sign in to comment.