RC-3
Some checks failed
release-tag / release-image (push) Failing after 1m24s

This commit is contained in:
2026-08-10 06:33:53 +02:00
parent 7fb7960608
commit 417b1e4e0e
2 changed files with 7 additions and 6 deletions

View File

@@ -1,13 +1,14 @@
FROM golang:1.23-alpine AS build
FROM golang:1.26-alpine AS build
WORKDIR /src
COPY go.mod ./
COPY go.* ./
RUN go mod download
RUN go mod tidy
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
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/neuralhunt ./cmd/server
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/neuralhunt-client ./cmd/client
FROM alpine:3.21
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

2
go.mod
View File

@@ -1,6 +1,6 @@
module neuralhunt
go 1.23.0
go 1.26
require (
github.com/go-chi/chi/v5 v5.2.1