Skip to content
Dockerfile 1.13 KiB
Newer Older
nimrod's avatar
nimrod committed
FROM golang:1.11-alpine3.8 as golang
nimrod's avatar
nimrod committed
RUN apk --update add git && \
nimrod's avatar
nimrod committed
    /usr/local/go/bin/go get github.com/spelufo/on-change && \
    /usr/local/go/bin/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
        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 \
        texlive-extra-utils \
nimrod's avatar
nimrod committed
        texlive-fonts-extra \
nimrod's avatar
nimrod committed
        texlive-fonts-recommended \
        texlive-font-utils \
        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