Files
stt-module/Dockerfile
Billy D. a5b66c09c3
Some checks failed
CI / Lint (push) Successful in 3m4s
CI / Test (push) Successful in 3m3s
CI / Release (push) Successful in 1m34s
CI / Docker Build & Push (push) Failing after 7m35s
CI / Notify (push) Successful in 1s
chore: bump handler-base to v0.1.5, add netrc secret mount to Dockerfile
2026-02-20 18:18:55 -05:00

27 lines
605 B
Docker

# Build stage — Go STT streaming service (HTTP variant)
FROM golang:1.25-alpine AS builder
WORKDIR /app
RUN apk add --no-cache ca-certificates git
ENV GOPRIVATE=git.daviestechlabs.io
ENV GONOSUMCHECK=git.daviestechlabs.io
COPY go.mod go.sum ./
RUN --mount=type=secret,id=netrc,target=/root/.netrc go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOAMD64=v3 go build -ldflags="-w -s" -o /stt-module .
# Runtime stage
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /stt-module /stt-module
USER 65534:65534
ENTRYPOINT ["/stt-module"]