the beginning of the idiots

This commit is contained in:
2025-10-24 14:51:13 -05:00
parent 0b377030c6
commit cb06217ef7
123 changed files with 10279 additions and 0 deletions

23
gemini/go/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Use the official Golang image to create a build artifact.
# https://hub.docker.com/_/golang
FROM golang:1.22 as builder
# Create and change to the app directory.
WORKDIR /app
# Retrieve application dependencies.
# This allows the container build to reuse cached dependencies.
# Expecting a go.mod file to be present.
COPY go.mod go.sum ./
RUN go mod download
# Copy local code to the container image.
COPY . .
# Build the binary.
RUN CGO_ENABLED=0 GOOS=linux go build -o /go/bin/app .
# Use a slim distribution for a small image.
FROM gcr.io/distroless/static-debian11
COPY --from=builder /go/bin/app /
CMD ["/app"]