-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
FROM alpine:3.9 | ||
RUN apk add --update --no-cache ca-certificates | ||
COPY docker-driver /bin/docker-driver | ||
# 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: really add cross-platform support | ||
|
||
# FROM golang:1.11.4-alpine as goenv | ||
# RUN go env GOARCH > /goarch && \ | ||
# go env GOARM > /goarm | ||
|
||
# FROM --platform=linux/amd64 grafana/loki-build-image as build | ||
FROM grafana/loki-build-image as build | ||
# COPY --from=goenv /goarch /goarm / | ||
COPY . /go/src/github.com/grafana/loki | ||
WORKDIR /go/src/github.com/grafana/loki | ||
# RUN GOARCH=$(cat /goarch) GOARM=$(cat /goarm) make clean && make cmd/docker-driver/docker-driver | ||
RUN make clean && make cmd/docker-driver/docker-driver | ||
|
||
FROM alpine:3.9 | ||
RUN apk add --update --no-cache ca-certificates | ||
COPY --from=build /go/src/github.com/grafana/loki/cmd/docker-driver/docker-driver /bin/docker-driver | ||
WORKDIR /bin/ | ||
ENTRYPOINT [ "/bin/docker-driver" ] | ||
ENTRYPOINT [ "/bin/docker-driver" ] |