Skip to content

Commit f624507

Browse files
umglurffcjack
authored andcommitted
fix(docker): set WORKDIR to root in loki Dockerfiles (#19941)
(cherry picked from commit 13f2b1a)
1 parent 48b507f commit f624507

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cmd/loki/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ COPY --from=filesystem /etc/passwd /etc/passwd
2626
COPY --from=filesystem /etc/group /etc/group
2727

2828
USER 10001
29+
WORKDIR /
2930
EXPOSE 3100
3031
ENTRYPOINT [ "/usr/bin/loki" ]
3132
CMD ["-config.file=/etc/loki/local-config.yaml"]

cmd/loki/Dockerfile.cross

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ COPY --from=filesystem /etc/passwd /etc/passwd
2828
COPY --from=filesystem /etc/group /etc/group
2929

3030
USER 10001
31+
WORKDIR /
3132
EXPOSE 3100
3233
ENTRYPOINT [ "/usr/bin/loki" ]
3334
CMD ["-config.file=/etc/loki/local-config.yaml"]

0 commit comments

Comments
 (0)