config codegen

This commit is contained in:
Laptop
2024-12-24 12:05:57 +02:00
parent f79bf02635
commit b5b231dca7
3 changed files with 51 additions and 29 deletions

View File

@@ -13,6 +13,9 @@ RUN templ generate
RUN go install github.com/dlclark/regexp2cg@main
RUN go generate ./lib/*
RUN go install github.com/maid-zone/soundcloakctl@master
RUN soundcloakctl config codegen
RUN CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=${TARGETOS} go build -ldflags "-s -w -extldflags '-static' -X main.commit=`git rev-parse HEAD | head -c 7` -X main.repo=`git remote get-url origin`" -o ./app
RUN echo "soundcloak:x:5000:5000:Soundcloak user:/:/sbin/nologin" > /etc/minimal-passwd && \
echo "soundcloak:x:5000:" > /etc/minimal-group