mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00

Implementation is largely based on: https://github.com/kovetskiy/mark/pull/167 Co-Authored-By: Manuel Rueger <manuel@rueg.eu>
16 lines
411 B
Docker
16 lines
411 B
Docker
FROM golang:1.20.3 as builder
|
|
ENV GOPATH="/go"
|
|
WORKDIR /go/src/github.com/kovetskiy/mark
|
|
COPY / .
|
|
RUN make get \
|
|
&& make build
|
|
|
|
FROM chromedp/headless-shell:latest
|
|
RUN apt-get update \
|
|
&& apt-get install --no-install-recommends -qq ca-certificates bash sed git \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
COPY --from=builder /go/src/github.com/kovetskiy/mark/mark /bin/
|
|
WORKDIR /docs
|