Files
pages/Dockerfile
T
Anya Tokugawa 16e572397b
Build and publish container images / images (push) Successful in 13m10s
Release container images / release (push) Successful in 25s
ci: serialize test packages to reduce SQLite initialization contention
2026-11-08 05:42:30 +09:00

25 lines
550 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
# Test packages create independent SQLite stores. Serialize packages to avoid
# concurrent server/store initialization exhausting the shared runner's I/O.
# Keep production database deadlines and the complete test suite unchanged.
RUN go test -p 1 ./...
FROM source AS runtime
RUN go build -o /pageswiki ./cmd/pageswiki
EXPOSE 8081
CMD ["/pageswiki"]