Mohammed Naser | 65cda13 | 2024-05-02 14:34:08 -0400 | [diff] [blame] | 1 | FROM golang:1.22.2 as build |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 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. |
| 6 | COPY . /src/loki |
| 7 | WORKDIR /src/loki |
| 8 | RUN make clean && make BUILD_IN_CONTAINER=false helm-test |
| 9 | |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 10 | FROM alpine:3.18.5 |
| 11 | RUN apk add --update --no-cache ca-certificates=20230506-r0 |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 12 | COPY --from=build /src/loki/production/helm/loki/src/helm-test/helm-test /usr/bin/helm-test |
| 13 | ENTRYPOINT [ "/usr/bin/helm-test" ] |