mirror of
https://github.com/tenox7/wrp.git
synced 2024-11-24 07:30:58 +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"
|