mirror of
https://git.cloudron.io/cloudron/prometheus-server-app.git
synced 2024-11-21 16:01:03 +00:00
22 lines
788 B
Docker
22 lines
788 B
Docker
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
|
|
|
|
RUN mkdir -p /app/data/runtime /app/data/config && \
|
|
chown -R cloudron:cloudron /app/data/runtime /app/data/config
|
|
|
|
WORKDIR /app/data
|
|
|
|
# install Prometheus
|
|
RUN mkdir -p /usr/local/bin/prometheus && \
|
|
cd /usr/local/bin && \
|
|
wget -c https://github.com/prometheus/prometheus/releases/download/v2.22.0/prometheus-2.22.0.linux-amd64.tar.gz && \
|
|
tar xvfz prometheus-*.tar.gz && \
|
|
rm -rf prometheus-*.tar.gz && \
|
|
mv prometheus-*/* prometheus && \
|
|
rm -rf prometheus-* && \
|
|
chown -R cloudron:cloudron prometheus
|
|
|
|
RUN sudo -u cloudron cp -n /usr/local/bin/prometheus/prometheus.yml /app/data/config/prometheus.yml
|
|
|
|
COPY start.sh /app/pkg/
|
|
|
|
CMD [ "/app/pkg/start.sh" ]
|