blob: cf4420a2a68d46367079aacf50a77a0fbbba1d4b [file] [log] [blame]
Giovanni Tirloni59219b62024-04-09 14:50:25 -03001FROM golang:1.21.3 as build
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00002
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
Giovanni Tirloni59219b62024-04-09 14:50:25 -030010FROM alpine:3.18.5
11RUN apk add --update --no-cache ca-certificates=20230506-r0
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +000012COPY --from=build /src/loki/production/helm/loki/src/helm-test/helm-test /usr/bin/helm-test
13ENTRYPOINT [ "/usr/bin/helm-test" ]