mirror of
https://github.com/hassio-addons/addon-prometheus.git
synced 2025-05-04 11:11:24 +00:00
👕 Dockerfile tweaks
This commit is contained in:
parent
cb9294a963
commit
9c72d27948
1 changed files with 12 additions and 4 deletions
|
@ -17,11 +17,19 @@ RUN \
|
|||
&& if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \
|
||||
\
|
||||
&& apk update \
|
||||
&& apk --no-cache add python3 py3-idna py3-certifi py3-chardet py3-yaml py3-urllib3 py3-requests \
|
||||
&& apk --no-cache add --virtual builddeps py-pip \
|
||||
&& apk --no-cache add \
|
||||
python3 \
|
||||
py3-idna \
|
||||
py3-certifi \
|
||||
py3-chardet \
|
||||
py3-yaml \
|
||||
py3-urllib3 \
|
||||
py3-requests \
|
||||
&& apk --no-cache add --virtual .builddeps \
|
||||
py-pip \
|
||||
\
|
||||
&& curl -J -L -o /tmp/prometheus.tar.gz \
|
||||
https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-${ARCH}.tar.gz \
|
||||
"https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-${ARCH}.tar.gz" \
|
||||
&& adduser -s /bin/false -D -H prometheus \
|
||||
&& cd /tmp \
|
||||
&& tar -xvf /tmp/prometheus.tar.gz \
|
||||
|
@ -33,7 +41,7 @@ RUN \
|
|||
&& rm -r prometheus-${PROMETHEUS_VERSION}.linux-${ARCH} \
|
||||
&& chown -R prometheus:prometheus /etc/prometheus \
|
||||
&& pip3 install -r /opt/prometheus-configgen/requirements.txt \
|
||||
&& apk del builddeps
|
||||
&& apk --no-cache del .builddeps
|
||||
|
||||
# Build arguments
|
||||
ARG BUILD_DATE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue