Skip to content
Dockerfile 1.06 KiB
Newer Older
nimrod's avatar
nimrod committed
FROM golang:1.11-alpine3.8 as on-change
nimrod's avatar
nimrod committed
RUN apk --update add git && \
    rm -rf /var/cache/apk/* && \
    /usr/local/go/bin/go get github.com/spelufo/on-change

FROM debian:buster-slim
nimrod's avatar
nimrod committed
COPY --from=on-change /go/bin/on-change /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 \
        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