From fa01d10bf51a53772513ff332679ee76ed3dbcaf Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Fri, 1 Dec 2023 16:24:37 +0530 Subject: [PATCH] chore: Install Caddy ahead of PR to enable Caddy support (#29256) This will install Caddy into the base image, ahead of incoming changes to replace NGINX and Certbot with Caddy. --- deploy/docker/base.dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/docker/base.dockerfile b/deploy/docker/base.dockerfile index 072de958b6..4b3bed07fe 100644 --- a/deploy/docker/base.dockerfile +++ b/deploy/docker/base.dockerfile @@ -49,6 +49,13 @@ RUN set -o xtrace \ && file="$(curl -sS 'https://nodejs.org/dist/latest-v18.x/' | awk -F\" '$2 ~ /linux-'"$(uname -m | sed 's/x86_64/x64/; s/aarch64/arm64/')"'.tar.gz/ {print $2}')" \ && curl "https://nodejs.org/dist/latest-v18.x/$file" | tar -xz -C /opt/node --strip-components 1 +# Install Caddy +RUN set -o xtrace \ + && mkdir -p /opt/caddy \ + && version="$(curl --write-out '%{redirect_url}' 'https://github.com/caddyserver/caddy/releases/latest' | sed 's,.*/v,,')" \ + && curl --location "https://github.com/caddyserver/caddy/releases/download/v$version/caddy_${version}_linux_$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/').tar.gz" \ + | tar -xz -C /opt/caddy + # Clean up cache file - Service layer RUN rm -rf \ /root/.cache \