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

FROM debian:stretch-slim
COPY --from=on-change /go/bin/on-change /usr/local/bin
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
        graphviz \
        lmodern \
        make \
        pandoc \
        sudo \
        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 \
        texlive-publishers && \
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" ]
VOLUME /volume
WORKDIR /volume
ENV HOME /volume
CMD [ "on-change", ".", "make" ]