diff --git a/cmd/loki/Dockerfile b/cmd/loki/Dockerfile index feb074da4a5617efd57d77b3dc96abb678bece9c..7a7ec4ccde7447e432d6ea06b0a9456af378b6f2 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 ca4c61f86eec092540d5dec70a3347bc530edd36..654a1e3f49f8a9315ca2dc419ce385df8f1e1069 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"]