2024-06-23 02:57:11 +00:00
|
|
|
FROM golang AS builder
|
2024-06-10 08:58:38 +00:00
|
|
|
WORKDIR /src
|
|
|
|
RUN git clone https://github.com/tenox7/wrp.git
|
|
|
|
WORKDIR /src/wrp
|
|
|
|
RUN go mod download
|
|
|
|
ARG TARGETARCH
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -o /wrp-${TARGETARCH}
|
|
|
|
|
2019-08-04 07:51:55 +00:00
|
|
|
FROM chromedp/headless-shell
|
2024-05-23 07:33:40 +00:00
|
|
|
ARG TARGETARCH
|
2024-06-10 08:58:38 +00:00
|
|
|
COPY --from=builder /wrp-${TARGETARCH} /wrp
|
2019-08-04 07:51:55 +00:00
|
|
|
ENTRYPOINT ["/wrp"]
|
|
|
|
ENV PATH="/headless-shell:${PATH}"
|
|
|
|
LABEL maintainer="as@tenoware.com"
|