6fac114a56
CI is moving to GitHub Actions runners that cannot reach git.unkin.net, so golib must resolve from its public path. - Require github.com/IUCLabs/golib v0.3.0 in place of git.unkin.net/unkin/golib - Import golib/pg from the new module path - Drop the GOPRIVATE settings (Makefile, Dockerfile, Woodpecker, README) that only existed for golib Reviewed-on: #183 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
22 lines
409 B
Docker
22 lines
409 B
Docker
FROM golang:1.25-alpine AS builder
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
WORKDIR /build
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
ARG VERSION=dev
|
|
RUN CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION}" -o artifactapi ./cmd/artifactapi
|
|
|
|
FROM gcr.io/distroless/static-debian12:nonroot
|
|
|
|
COPY --from=builder /build/artifactapi /usr/local/bin/artifactapi
|
|
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT ["artifactapi"]
|