Skip to content
Snippets Groups Projects
Commit 3f6d535d authored by Timi7007's avatar Timi7007
Browse files

Replaced deprecated apt-key, automated OS-based download

parent 37cd48cc
No related branches found
No related tags found
No related merge requests found
...@@ -2,16 +2,13 @@ ...@@ -2,16 +2,13 @@
FROM debian:bullseye-slim FROM debian:bullseye-slim
# Install requirements # Install requirements
RUN apt-get update && \ RUN apt-get update && apt-get install -y gnupg
apt-get install -y gnupg
# add the deb source # add signing key and deb source, install aprsc
# add the signing key RUN gpg --keyserver keyserver.ubuntu.com --recv-keys C51AA22389B5B74C3896EF3CA72A581E657A2B8D && \
# apt update gpg --export C51AA22389B5B74C3896EF3CA72A581E657A2B8D > /etc/apt/trusted.gpg.d/aprsc.gpg && \
# install the aprsc debian package chown root:root /etc/apt/trusted.gpg.d/aprsc.gpg && chmod 644 /etc/apt/trusted.gpg.d/aprsc.gpg && \
RUN echo "deb http://aprsc-dist.he.fi/aprsc/apt bullseye main" > /etc/apt/sources.list.d/aprsc.list && \ echo "deb [signed-by=/etc/apt/trusted.gpg.d/aprsc.gpg] http://aprsc-dist.he.fi/aprsc/apt $(cat /etc/os-release | grep VERSION_CODENAME | awk '{gsub("VERSION_CODENAME=", "");print}') main" > /etc/apt/sources.list.d/aprsc.list && \
gpg --keyserver keyserver.ubuntu.com --recv C51AA22389B5B74C3896EF3CA72A581E657A2B8D && \
gpg --export C51AA22389B5B74C3896EF3CA72A581E657A2B8D | apt-key add - && \
apt-get update && \ apt-get update && \
apt-get install -y aprsc apt-get install -y aprsc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment