Skip to content

Commit

Permalink
Added Dockerfile command to change owner from root to loki on the /tm…
Browse files Browse the repository at this point in the history
…p folder. This is needed for all StatefulSet (like ingester, compactor, index-gateway and ruler) components. Related to grafana#11631
  • Loading branch information
mariodietnercodit committed Jan 18, 2024
1 parent 09fe654 commit c6ad3f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/loki/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY . /src/loki
WORKDIR /src/loki
RUN make clean && make BUILD_IN_CONTAINER=false loki

FROM alpine:3.18.4
FROM alpine:3.18.5

RUN apk add --no-cache ca-certificates libcap

Expand All @@ -15,8 +15,7 @@ RUN addgroup -g 10001 -S loki && \
adduser -u 10001 -S loki -G loki
RUN mkdir -p /loki/rules && \
mkdir -p /loki/rules-temp && \
chown -R loki:loki /etc/loki /loki
RUN chown -R loki:loki /tmp/
chown -R loki:loki /etc/loki /loki /tmp

USER 10001
EXPOSE 3100
Expand Down

0 comments on commit c6ad3f0

Please sign in to comment.