mirror of
https://github.com/tenox7/wrp.git
synced 2024-10-14 16:24:17 +00:00
15 lines
396 B
Docker
15 lines
396 B
Docker
FROM golang AS builder
|
|
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}
|
|
|
|
FROM chromedp/headless-shell
|
|
ARG TARGETARCH
|
|
COPY --from=builder /wrp-${TARGETARCH} /wrp
|
|
ENTRYPOINT ["/wrp"]
|
|
ENV PATH="/headless-shell:${PATH}"
|
|
LABEL maintainer="as@tenoware.com"
|