|
|
|
@ -3,7 +3,7 @@ ARG GO_VERSION=1.23 |
|
|
|
|
# Directories in this file are referenced from the root of the project not this folder |
|
|
|
|
# This file is intended to be called from the root like so: |
|
|
|
|
# docker build -t grafana/promtail -f cmd/promtail/Dockerfile . |
|
|
|
|
FROM golang:${GO_VERSION} as goenv |
|
|
|
|
FROM golang:${GO_VERSION} AS goenv |
|
|
|
|
RUN go env GOARCH > /goarch && \ |
|
|
|
|
go env GOARM > /goarm |
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ COPY . /src/loki |
|
|
|
|
WORKDIR /src/loki |
|
|
|
|
RUN make clean && GOARCH=$(cat /goarch) GOARM=$(cat /goarm) make BUILD_IN_CONTAINER=false loki-canary |
|
|
|
|
|
|
|
|
|
FROM gcr.io/distroless/base-nossl:debug |
|
|
|
|
FROM gcr.io/distroless/static:debug |
|
|
|
|
COPY --from=build /src/loki/cmd/loki-canary/loki-canary /usr/bin/loki-canary |
|
|
|
|
SHELL [ "/busybox/sh", "-c" ] |
|
|
|
|
RUN ln -s /busybox/sh /bin/sh |
|
|
|
|