RC-7
release-tag / release-image (push) Failing after 2m44s

This commit is contained in:
2026-08-11 16:58:07 +02:00
parent 185ccf1101
commit bcfbef390f
44 changed files with 4778 additions and 172 deletions
+27
View File
@@ -0,0 +1,27 @@
FROM golang:1.23-alpine AS build
WORKDIR /src
# Resolve dependencies before copying source. Do not run `go mod tidy` here.
COPY go.mod go.sum ./
RUN go mod download
COPY cmd ./cmd
COPY internal ./internal
RUN CGO_ENABLED=0 GOOS=linux go build \
-trimpath -ldflags="-s -w" \
-o /out/neuralhunt-client ./cmd/client
FROM alpine:3.21
RUN adduser -D -h /home/app app \
&& mkdir -p /app /identity \
&& chown -R app:app /app /identity
WORKDIR /app
COPY --from=build /out/neuralhunt-client /app/neuralhunt-client
USER app
ENV HOME=/home/app
VOLUME ["/identity"]
ENTRYPOINT ["/app/neuralhunt-client"]
CMD ["-help"]