Skip to content

Commit

Permalink
Merge pull request #32 from alphagov/samsimpson1/diff-gen-node
Browse files Browse the repository at this point in the history
Update nodejs to 18 in diff-generator image
  • Loading branch information
samsimpson1 authored Dec 4, 2023
2 parents 9ca6982 + b718db8 commit 266a5b7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions diff-generator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
FROM public.ecr.aws/lts/ubuntu:22.04_stable

RUN apt update && \
apt install -y --no-install-recommends python3 python3-pip npm && \
rm -r /var/lib/apt/lists /var/cache/apt/archives && \
RUN apt update; apt install -y curl gpg; \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor > /usr/share/keyrings/nodesource.gpg; \
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x jammy main" | tee /etc/apt/sources.list.d/nodesource.list; \
apt update; \
apt install -y --no-install-recommends python3 python3-pip nodejs; \
rm -r /var/lib/apt/lists /var/cache/apt/archives; \
npm install -g diff2html-cli@5

WORKDIR /function
Expand Down

0 comments on commit 266a5b7

Please sign in to comment.