Test and publish container images / images (push) Failing after 0s
Test Go packages in Docker, build and inspect three application images, then publish commit-specific tags. Document dedicated runner and package credentials, and provide an opt-in registry Compose overlay without automatic deployment.
22 lines
314 B
Docker
22 lines
314 B
Docker
FROM golang:1.25-alpine AS source
|
|
|
|
|
|
WORKDIR /src
|
|
|
|
RUN apk add --no-cache ca-certificates git ffmpeg poppler-utils 7zip xz
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
FROM source AS test
|
|
RUN go test ./...
|
|
|
|
FROM source AS runtime
|
|
RUN go build -o /pageswiki ./cmd/pageswiki
|
|
|
|
EXPOSE 8081
|
|
|
|
CMD ["/pageswiki"]
|