Skip to content
Dockerfile 1.2 KiB
Newer Older
FROM golang:1.13-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
RUN apt-get update && \
nimrod's avatar
nimrod committed
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
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
        graphicsmagick \
nimrod's avatar
nimrod committed
        gosu \
nimrod's avatar
nimrod committed
        graphviz \
nimrod's avatar
nimrod committed
        groff \
nimrod's avatar
nimrod committed
        lmodern \
        make \
        pandoc \
nimrod's avatar
nimrod committed
        pdftk \
nimrod's avatar
nimrod committed
        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
    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/
RUN make -C /example all clean