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:
COPY ./package*.json ./
RUN npm i
COPY . .
RUN npm run build
COPY --from=0 /usr/src/app/dist .
RUN go:generate togo http -package dist -output dist_gen.go
and with go generate: