slask
Some checks failed
Build and Publish / BuildAndDeploy (push) Failing after 8s

This commit is contained in:
matst80
2025-05-15 19:28:34 +02:00
commit 19b7299966
8 changed files with 513 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1
FROM golang:alpine AS build-stage
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./
COPY pkg ./pkg
RUN CGO_ENABLED=0 GOOS=linux go build -o /go-persist
FROM gcr.io/distroless/base-debian11
WORKDIR /
COPY --from=build-stage /go-persist /go-persist
ENTRYPOINT ["/go-persist"]