Skip to content
Dockerfile 1.33 KiB
Newer Older
nimrod's avatar
nimrod committed
FROM golang:1.15-buster as golang
RUN go get github.com/spelufo/on-change && \
    go get github.com/sugyan/ttyrec2gif
nimrod's avatar
nimrod committed

FROM debian:buster-slim
nimrod's avatar
nimrod committed
COPY --from=golang /go/bin/on-change /go/bin/ttyrec2gif /usr/local/bin/
nimrod's avatar
nimrod committed
# hadolint ignore=DL3008
nimrod's avatar
nimrod committed
RUN apt-get update && \
nimrod's avatar
nimrod committed
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
        ca-certificates \
nimrod's avatar
nimrod committed
        fonts-font-awesome \
nimrod's avatar
nimrod committed
        fonts-linex \
        fonts-noto-extra \
        fonts-sil-ezra \
nimrod's avatar
nimrod committed
        ghostscript \
nimrod's avatar
nimrod committed
        graphicsmagick \
nimrod's avatar
nimrod committed
        gosu \
nimrod's avatar
nimrod committed
        graphviz \
nimrod's avatar
nimrod committed
        groff \
nimrod's avatar
nimrod committed
        librsvg2-bin \
nimrod's avatar
nimrod committed
        lmodern \
        make \
nimrod's avatar
nimrod committed
        netbase \
nimrod's avatar
nimrod committed
        pandoc \
        texlive-extra-utils \
nimrod's avatar
nimrod committed
        texlive-fonts-extra \
nimrod's avatar
nimrod committed
        texlive-fonts-recommended \
        texlive-font-utils \
nimrod's avatar
nimrod committed
        texlive-lang-arabic \
        texlive-lang-other \
nimrod's avatar
nimrod committed
        texlive-latex-base \
        texlive-latex-extra \
nimrod's avatar
nimrod committed
        texlive-luatex \
nimrod's avatar
nimrod committed
        texlive-publishers \
        texlive-xetex \
nimrod's avatar
nimrod committed
        qpdf \
nimrod's avatar
nimrod committed
    && \
nimrod's avatar
nimrod committed
    rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*
ADD [ "https://www.shore.co.il/blog/static/runas", "/entrypoint" ]
ENTRYPOINT [ "/bin/sh", "/entrypoint" ]
nimrod's avatar
nimrod committed
CMD [ "on-change", ".", "make" ]
VOLUME /volume
WORKDIR /volume
ENV HOME /volume
nimrod's avatar
nimrod committed
# Run a test build.
COPY example/ /example/
nimrod's avatar
nimrod committed
RUN make --debug=j --keep-going -C /example test