fix(docker): set WORKDIR to root in loki Dockerfiles (#19941)

pull/19951/head
Håvard Moen 5 months ago committed by GitHub
parent 39d2beaae6
commit 13f2b1adae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      cmd/loki/Dockerfile
  2. 1
      cmd/loki/Dockerfile.cross

@ -26,6 +26,7 @@ COPY --from=filesystem /etc/passwd /etc/passwd
COPY --from=filesystem /etc/group /etc/group
USER 10001
WORKDIR /
EXPOSE 3100
ENTRYPOINT [ "/usr/bin/loki" ]
CMD ["-config.file=/etc/loki/local-config.yaml"]

@ -28,6 +28,7 @@ COPY --from=filesystem /etc/passwd /etc/passwd
COPY --from=filesystem /etc/group /etc/group
USER 10001
WORKDIR /
EXPOSE 3100
ENTRYPOINT [ "/usr/bin/loki" ]
CMD ["-config.file=/etc/loki/local-config.yaml"]

Loading…
Cancel
Save