docker-playground/debian-stretch-obs-latest/Dockerfile

23 lines
698 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
# Invalidate cache once the repository is updated
ADD $OSMOCOM_REPO/Release /tmp/Release