This commit is contained in:
2025-11-06 16:25:33 +01:00
commit a6876f9f0b
15 changed files with 1611 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# Build stage
FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o /go-otel ./cmd/server
# Final stage
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /go-otel .
COPY --from=builder /app/index.html .
EXPOSE 8080
CMD ["./go-otel"]