Download Dockerfile from bilico/loki: direct link, hf CLI and curl.
- Browser
- Download file 897 Bytes
-
https://huggingface.co/spaces/bilico/loki/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bilico/loki/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bilico/loki/resolve/main/Dockerfile
897 Bytes
| FROM grafana/loki:latest | |
| # COPY loki-config.yaml /etc/loki/local-config.yaml | |
| # CMD ["-config.file=/etc/loki/local-config.yaml"] | |
| # FROM grafana/loki:latest | |
| # # Copy your loki config inside container | |
| COPY loki-config.yaml /etc/loki/local-config.yaml | |
| # # Copy empty data folders inside container (to avoid permission issues) | |
| COPY data /data | |
| # # Set working directory to /data so Loki reads relative paths there | |
| WORKDIR /data | |
| # # Run Loki with config file path | |
| CMD [ "-config.file=/etc/loki/local-config.yaml" ] | |
| build works | |
| FROM grafana/loki:1.5.0 | |
| COPY loki-config.yaml /etc/loki/local-config.yaml | |
| USER root | |
| RUN mkdir -p /data && chmod 777 /data | |
| USER 10001 | |
| CMD ["-config.file=/etc/loki/local-config.yaml"] | |
| # FROM grafana/loki:2.8.2 | |
| # USER root | |
| # RUN mkdir -p /loki/boltdb-shipper-cache /loki/chunks /loki/index /loki/wal | |
| # CMD ["-config.file=/etc/loki/local-config.yaml"] | |