mirror of
https://github.com/lukaszraczylo/mcp-readitall.git
synced 2026-10-12 00:45:33 +00:00
Update chromedp to v0.19.1 and cdproto to v0.157.4, port the browser, reader and login code to the generic Action API, group both modules in Renovate, and move the Docker build to Go 1.27.
20 lines
687 B
Docker
20 lines
687 B
Docker
# Build stage
|
|
FROM golang:1.27-alpine AS build
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/readitall ./cmd/readitall
|
|
|
|
# Runtime: chromedp/headless-shell is distroless-based and ships only
|
|
# headless Chrome at /headless-shell/headless-shell (on PATH, where
|
|
# chromedp's exec allocator finds it).
|
|
FROM chromedp/headless-shell:latest
|
|
LABEL org.opencontainers.image.source="https://github.com/lukaszraczylo/mcp-readitall"
|
|
COPY --from=build /out/readitall /usr/local/bin/readitall
|
|
ENV READITALL_SESSIONS_DIR=/data \
|
|
READITALL_ADDR=:8080
|
|
VOLUME ["/data"]
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/usr/local/bin/readitall"]
|