containerfile: install npm, gen stylesheet

[skip ci]
This commit is contained in:
leo 2023-05-28 20:05:01 +02:00
parent 17540bf453
commit f53953e920
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

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