RC-1
release-tag / release-image (push) Failing after 1m18s

This commit is contained in:
2026-08-10 05:48:55 +02:00
parent 4f0ac14c49
commit 005fd6ca51
52 changed files with 9020 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM golang:1.26-alpine AS build
WORKDIR /src
COPY go.mod ./
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 ./cmd/server \
&& CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/neuralhunt-client ./cmd/client
FROM alpine:3.24
RUN adduser -D -H app && mkdir -p /data /app && chown -R app:app /data /app
WORKDIR /app
COPY --from=build /out/neuralhunt /app/neuralhunt
COPY --from=build /out/neuralhunt-client /app/neuralhunt-client
USER app
ENV SQLITE_PATH=/data/neuralhunt.db \
ARTIFACT_DIR=/data/artifacts
EXPOSE 8080
ENTRYPOINT ["/app/neuralhunt"]