blob: 5ffb228f70bc23f03def8b0e9e910404196aa275 [file] [log] [blame]
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00001FROM golang:1.18.5 as build
2
3# build via Makefile target helm-test-image in root
4# Makefile. Building from this directory will not be
5# able to access source needed in rest of repo.
6COPY . /src/loki
7WORKDIR /src/loki
8RUN make clean && make BUILD_IN_CONTAINER=false helm-test
9
10FROM alpine:3.16.2
11RUN apk add --update --no-cache ca-certificates=20220614-r0
12COPY --from=build /src/loki/production/helm/loki/src/helm-test/helm-test /usr/bin/helm-test
13ENTRYPOINT [ "/usr/bin/helm-test" ]