/app/data changes must happen at runtime
This commit is contained in:
parent
adea1905ab
commit
0956729298
2 changed files with 4 additions and 5 deletions
|
@ -1,10 +1,5 @@
|
|||
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 && \
|
||||
|
|
4
start.sh
4
start.sh
|
@ -2,6 +2,10 @@
|
|||
|
||||
set -eu
|
||||
|
||||
mkdir -p /app/data/runtime /app/data/config
|
||||
|
||||
chown -R cloudron:cloudron /app/data
|
||||
|
||||
echo "=> Starting Prometheus"
|
||||
cd /usr/local/bin/prometheus
|
||||
exec /usr/local/bin/gosu cloudron:cloudron ./prometheus --config.file=/app/data/config/prometheus.yml --storage.tsdb.path=/app/data/runtime
|
||||
|
|
Loading…
Reference in a new issue