Files
pages/Dockerfile
T
Anya Tokugawa 02883e404b
Test and publish container images / images (push) Failing after 0s
Add Gitea Actions image build and registry publication
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.
2026-09-27 15:00:42 +09:00

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