diff --git a/cmd/loki/Dockerfile b/cmd/loki/Dockerfile index feb074da4a561..7a7ec4ccde744 100644 --- a/cmd/loki/Dockerfile +++ b/cmd/loki/Dockerfile @@ -4,3 +4,4 @@ COPY loki /bin/loki COPY loki-local-config.yaml /etc/loki/local-config.yaml EXPOSE 80 ENTRYPOINT [ "/bin/loki" ] +CMD ["-config.file=/etc/loki/local-config.yaml"] diff --git a/cmd/loki/Dockerfile.debug b/cmd/loki/Dockerfile.debug index ca4c61f86eec0..654a1e3f49f8a 100644 --- a/cmd/loki/Dockerfile.debug +++ b/cmd/loki/Dockerfile.debug @@ -15,3 +15,4 @@ RUN apk add --no-cache libc6-compat # Pass flags to the program you are debugging using --, for example:` # dlv exec ./hello -- server --config conf/config.toml` ENTRYPOINT ["/usr/bin/dlv", "--listen=:40000", "--headless=true", "--api-version=2", "exec", "/bin/loki-debug", "--"] +CMD ["-config.file=/etc/loki/local-config.yaml"]