test build
Some checks failed
Build and Publish / BuildAndDeploy (push) Failing after 30s

This commit is contained in:
matst80
2024-11-09 01:09:23 +01:00
parent c3d30ea0b3
commit fa708b71dd
3 changed files with 118 additions and 0 deletions

15
Dockerfile Normal file
View File

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