Files
gosleep/Dockerfile
T
forust 442ac9f580 feat: add linter configs, Dockerfile, CI/CD pipeline
- .golangci.yml — 50+ linters enabled
- .yamllint — yaml lint rules
- cicd.yaml — CI/CD with lint-go (golangci, staticcheck,
  gosec, revive), lint-yaml, build+test, publish
- Dockerfile — multi-stage scratch build
- go vet passes clean
2026-07-03 01:49:00 +02:00

13 lines
371 B
Docker

FROM golang:1.23-alpine AS builder
RUN apk add --no-cache git ca-certificates
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /gosleep-timer .
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /gosleep-timer /gosleep-timer
ENTRYPOINT ["/gosleep-timer"]