From a8fc9b90ad82725844019ee746ecfada05800e79 Mon Sep 17 00:00:00 2001 From: Hanwen Zh <70364944+homework36@users.noreply.github.com> Date: Mon, 14 Jul 2025 12:28:55 -0400 Subject: [PATCH 1/3] point apt sources to Debian archive for buster Debian Buster repositories have moved to archive.debian.org. Update sources.list URLs and disable expired metadata checks to allow apt-get update and package installation. --- nginx/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 678290475..b5702ad92 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -19,9 +19,11 @@ RUN export DJANGO_SECRET_KEY=localdev \ FROM nginx:1.19 # Install OS dependencies -RUN apt-get -qq update \ - && apt-get -qq install openssl certbot unzip -y \ - && rm -rf /var/lib/apt/lists/* +RUN sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list && \ + sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list && \ + apt-get -o Acquire::Check-Valid-Until=false update && \ + apt-get install -y openssl certbot unzip && \ + rm -rf /var/lib/apt/lists/* # Add configuration files. COPY ./config/nginx.conf /etc/nginx/nginx.conf From cb23436cba1e0711566b01e3471a87d3dcfb41b7 Mon Sep 17 00:00:00 2001 From: Hanwen Zh <70364944+homework36@users.noreply.github.com> Date: Mon, 14 Jul 2025 12:29:52 -0400 Subject: [PATCH 2/3] force default setting for debian package install to prevent potential time out during auto build --- nginx/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index b5702ad92..b03dd8b98 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -18,6 +18,9 @@ RUN export DJANGO_SECRET_KEY=localdev \ ########################################################### FROM nginx:1.19 +# prevents interactive prompts during package installation that would otherwise hang or break automated builds +ENV DEBIAN_FRONTEND=noninteractive + # Install OS dependencies RUN sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list && \ sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list && \ From c4776ee5c8e8a9a8f57822020e51b8062a3d34d5 Mon Sep 17 00:00:00 2001 From: Hanwen Zh <70364944+homework36@users.noreply.github.com> Date: Mon, 14 Jul 2025 12:30:24 -0400 Subject: [PATCH 3/3] fix FromAsCasing mismatch --- nginx/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index b03dd8b98..4f4b687e0 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -1,5 +1,5 @@ ARG VERSION -FROM ddmal/rodan-main:${VERSION} as rodan-static +FROM ddmal/rodan-main:${VERSION} AS rodan-static RUN touch /code/Rodan/database.log /code/Rodan/rodan.log