2021-12-16 12:02:35 +00:00
|
|
|
ARG REGISTRY=docker.io
|
|
|
|
ARG UPSTREAM_DISTRO=debian:bullseye
|
|
|
|
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
|
|
|
# Arguments used after FROM must be specified again
|
|
|
|
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
|
|
|
ARG OSMOCOM_REPO_PATH="repositories/network:/osmocom:"
|
|
|
|
ARG OSMOCOM_REPO="${OSMOCOM_REPO_MIRROR}/${OSMOCOM_REPO_PATH}/latest/Debian_11/"
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get upgrade -y && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
telnet \
|
2022-06-27 14:28:11 +00:00
|
|
|
ca-certificates \
|
2021-12-16 12:02:35 +00:00
|
|
|
gnupg \
|
|
|
|
&& \
|
|
|
|
apt-get clean
|
|
|
|
|
|
|
|
COPY .common/Release.key /tmp/Release.key
|
|
|
|
RUN apt-key add /tmp/Release.key && \
|
|
|
|
rm /tmp/Release.key && \
|
|
|
|
echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-latest.list
|
|
|
|
|
|
|
|
# Make respawn.sh part of this image, so it can be used by other images based on it
|
|
|
|
COPY .common/respawn.sh /usr/local/bin/respawn.sh
|
|
|
|
|
|
|
|
# Invalidate cache once the repository is updated
|
|
|
|
ADD $OSMOCOM_REPO/Release /tmp/Release
|