wrp/Dockerfile

15 lines
396 B
Docker
Raw Normal View History

2024-06-10 08:58:38 +00:00
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}
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"