Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
saleh-mir committed Aug 7, 2024
1 parent 26e2020 commit 7714798
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7714798

Please sign in to comment.