merge api / controller

This commit is contained in:
GitBluub
2025-08-23 19:35:45 +02:00
parent bcc4c817d5
commit 02812e1423
4 changed files with 75 additions and 6 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM golang:1.24 AS build
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /cish-api
FROM gcr.io/distroless/base-debian11
WORKDIR /app
EXPOSE 5677
USER nonroot:nonroot
COPY --from=build /cish-api /app/cish-api
CMD ["/app/cish-api"]