How to generate the .go files in the dist dir of drone-ui?

Hi, I am trying to build the ui project with deployment options but I cannot seem to find any info on how the .go files inside of the dir directory are built. When I build the project via npm run build it only generates the files directory and not any .go files.

I see this line mentioned in dist.go in source:
go:generate togo http -package dist -output dist_gen.go

But when I run it all I get is, “/bin/sh: 1: go:generate: not found”. Does anyone know how to do this?

Here is my Dockerfile:

FROM node:10.19.0

WORKDIR /usr/src/app

COPY ./package*.json ./

RUN npm i

COPY . .

RUN npm run build

FROM golang

COPY --from=0 /usr/src/app/dist .

RUN go:generate togo http -package dist -output dist_gen.go

and with go generate: