From bab68df5149ebadd4aca7f9cd561823b093bf735 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 10 Aug 2026 06:23:51 +0200 Subject: [PATCH] Dockerfile aktualisiert --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c39471..e1452b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,11 @@ FROM golang:1.26-alpine AS build WORKDIR /src COPY go.* ./ RUN go mod download -COPY cmd ./cmd +RUN go mod tidy +COPY . . 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.24 RUN adduser -D -H app && mkdir -p /data /app && chown -R app:app /data /app