26 lines
833 B
Docker
26 lines
833 B
Docker
ARG REGISTRY=docker.io
|
|
ARG UPSTREAM_DISTRO=debian:stretch
|
|
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
|
# Arguments used after FROM must be specified again
|
|
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
|
ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
|
|
|
RUN apt-get update && \
|
|
apt-get upgrade -y && \
|
|
apt-get install -y --no-install-recommends \
|
|
telnet \
|
|
gnupg \
|
|
&& \
|
|
apt-get clean
|
|
|
|
COPY 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
|