GoError: browser not found in registry. make sure to set browser type option in scenario definition in order to use the browser module

import { browser } from ‘k6/browser’;

export const options = {
scenarios: {
ui: {
executor: ‘constant-vus’,
vus: 3,
duration: ‘3m’,
exec: ‘webpagetest’, // Specify which function to run
options: {
browser: {
type: ‘chromium’, // Specify the browser type here
},
}
},

},
};

// Define the webpagetest function
export async function webpagetest() {
const page = await browser.newPage();

await page.goto(‘wwwyoutubecom’);

await page.waitForTimeout(10000); // Wait for 10 seconds

await page.close();
}

**when we try to execute this particular test case using k6 operator i am facing this issue where it fails to execute in kubernetes pods stating **

Uncaught (in promise) GoError: browser not found in registry. make sure to set browser type option in scenario definition in order to use the browser module

and here is the docker file

FROM golang:1.21-alpine as builder
WORKDIR $GOPATH/src/go.k6.io/k6
ADD . .
RUN apk --no-cache add git
RUN CGO_ENABLED=0 go install go.k6.io/xk6/cmd/xk6@latest
RUN CGO_ENABLED=0 xk6 build latest
–output /tmp/k6
support
FROM alpine:3.19
RUN apk add --no-cache ca-certificates chromium-swiftshader
&& adduser -D -u 12345 -g 12345 k6
COPY --from=builder /tmp/k6 /usr/bin/k6

ENV CHROME_BIN=/usr/bin/chromium-browser
ENV CHROME_PATH=/usr/lib/chromium/

ENV K6_BROWSER_HEADLESS=true

USER 12345
WORKDIR /home/k6

ENTRYPOINT [“k6”]

Being a pretty newbie here please share refrences