diff --git a/Containerfile b/Containerfile index d2b6260..9ce42f0 100644 --- a/Containerfile +++ b/Containerfile @@ -24,8 +24,9 @@ COPY . /go/pcmt WORKDIR /go/pcmt -RUN CGO_ENABLED=0 \ - GOLDFLAGS="-s -w -X main.version=${VERSION:-prod}" \ +RUN apk add --no-cache npm=9.1.2-r0 \ + && go generate -v . \ + && CGO_ENABLED=0 GOLDFLAGS="-s -w -X main.version=${VERSION:-prod}" \ go build -v .