From 7714798723603fe37313bfe418b87bb8b6507d8b Mon Sep 17 00:00:00 2001
From: Saleh Mir <saleh@jesse.trade>
Date: Wed, 7 Aug 2024 21:49:34 +0330
Subject: [PATCH] Update Dockerfile

---
 Dockerfile | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index ba3d4be27..bc0261149 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,11 +7,12 @@ RUN apt-get update && apt-get install -y \
     gnupg2 curl \
     && rm -rf /var/lib/apt/lists/*
 
-# Add missing GPG keys
-RUN curl -fsSL https://deb.debian.org/debian/archive-key.asc | gpg --dearmor -o /usr/share/keyrings/debian-archive-keyring.gpg \
-    && echo "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian bookworm main" > /etc/apt/sources.list.d/bookworm.list \
-    && echo "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian bookworm-updates main" >> /etc/apt/sources.list.d/bookworm.list \
-    && echo "deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian-security bookworm-security main" >> /etc/apt/sources.list.d/bookworm.list \
+# Add missing GPG keys directly
+RUN mkdir -p /etc/apt/keyrings \
+    && curl -fsSL https://ftp-master.debian.org/keys/release-11.asc | tee /etc/apt/keyrings/debian-archive-keyring.gpg \
+    && echo "deb [signed-by=/etc/apt/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian bookworm main" > /etc/apt/sources.list.d/bookworm.list \
+    && echo "deb [signed-by=/etc/apt/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian bookworm-updates main" >> /etc/apt/sources.list.d/bookworm.list \
+    && echo "deb [signed-by=/etc/apt/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian-security bookworm-security main" >> /etc/apt/sources.list.d/bookworm.list \
     && apt-get update
 
 # Install additional packages