blob: 48ff7e8a6a27564fa8d85f351986a34f1e618ee4 [file] [log] [blame]
Mohammed Naser65cda132024-05-02 14:34:08 -04001FROM golang:1.22.2 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" ]