This repository has been archived on 2026-11-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
unkin-agent 6fac114a56 Import golib from github.com/IUCLabs/golib (#183)
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>
2026-11-20 00:34:27 +11:00

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"]