ARG BUILD_IMAGE=grafana/loki-build-image:0.7.2 # Directories in this file are referenced from the root of the project not this folder # This file is intented to be called from the root like so: # docker build -t grafana/loki -f cmd/loki/Dockerfile . # TODO: add cross-platform support FROM $BUILD_IMAGE as build COPY . /src/loki WORKDIR /src/loki RUN make clean && make BUILD_IN_CONTAINER=false cmd/docker-driver/docker-driver FROM alpine:3.9 RUN apk add --update --no-cache ca-certificates COPY --from=build /src/loki/cmd/docker-driver/docker-driver /bin/docker-driver WORKDIR /bin/ ENTRYPOINT [ "/bin/docker-driver" ]