| FROM prom/prometheus:latest |
|
|
| USER root |
| WORKDIR /app |
|
|
| |
| COPY turing_cloud.yml /app/turing_cloud.yml |
|
|
| |
| ENTRYPOINT ["/bin/sh", "-c"] |
|
|
| |
| |
| |
| |
| |
| CMD ["export RUN_PORT=${PORT:-7860} && \ |
| echo 'System starting on PORT: '$RUN_PORT && \ |
| sed -i \"s/localhost:7860/localhost:$RUN_PORT/g\" /app/turing_cloud.yml && \ |
| sed -i \"s|GRAFANA_PASSWORD|$GRAFANA_PASSWORD|g\" /app/turing_cloud.yml && \ |
| /bin/prometheus \ |
| --config.file=/app/turing_cloud.yml \ |
| --web.listen-address=0.0.0.0:$RUN_PORT \ |
| --storage.tsdb.path=/prometheus \ |
| --web.enable-lifecycle"] |