mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 04:32:30 +08:00

* apt-transport-https is no longer needed (apt has builtin HTTPS support) apt-transport-https is a virtual package since Ubuntu Bionic as apt natively supports HTTPS repos since then, see: https://packages.ubuntu.com/bionic/apt-transport-https Signed-off-by: Simon Deziel <simon@sdeziel.info> * Stop pulling software-properties-common (unused) software-properties-common was used for the add-apt-repository command that is no longer used since commit 26cf3d9c66d8f1 Signed-off-by: Simon Deziel <simon@sdeziel.info>
15 lines
389 B
Docker
15 lines
389 B
Docker
FROM ubuntu:20.04
|
|
|
|
ARG REPO_CONFIG=grafana.list.oss
|
|
ARG PACKAGE=grafana
|
|
|
|
RUN apt update && \
|
|
apt install -y curl \
|
|
ca-certificates \
|
|
gnupg && \
|
|
curl https://packages.grafana.com/gpg.key | apt-key add -
|
|
|
|
COPY "./$REPO_CONFIG" /etc/apt/sources.list.d/grafana.list
|
|
RUN apt update && \
|
|
apt install -y $PACKAGE
|