From ff33c52fa7e3b4aaf1228e9562c6407018dd3a52 Mon Sep 17 00:00:00 2001 From: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:52:11 +0200 Subject: [PATCH] chore: update static-website action to ubuntu 24 --- github-actions/static-websites/Dockerfile | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/github-actions/static-websites/Dockerfile b/github-actions/static-websites/Dockerfile index c5c01cf79..d7bb63f59 100644 --- a/github-actions/static-websites/Dockerfile +++ b/github-actions/static-websites/Dockerfile @@ -1,6 +1,22 @@ -FROM ubuntu:bionic +FROM ubuntu:24.04 -RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y git awscli +RUN set -eux; \ + apt-get update; \ + DEBIAN_FRONTEND=noninteractive apt-get install -y \ + git \ + curl \ + unzip \ + python3 \ + python3-pip \ + ; \ + # Download correct binary for the architecture + if [ "$(arch)" = "aarch64" ]; then \ + curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"; \ + else \ + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"; \ + fi; \ + unzip awscliv2.zip; \ + ./aws/install COPY entrypoint.sh /entrypoint.sh