diff --git a/Dockerfile b/Dockerfile index 0ac8514..eb7d777 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \ diff --git a/start.sh b/start.sh index b59d3db..e247c28 100755 --- a/start.sh +++ b/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