Skip to content
Snippets Groups Projects
Select Git revision
  • 6e4581c7cbc75a569dc13449def50743483ea2a2
  • master default
2 results

Dockerfile

Blame
    • nimrod's avatar
      6e4581c7
      Updates. · 6e4581c7
      nimrod authored
      - Use newer runas script, using gosu instead of sudo.
      - Added test steps to the build using the example presentation (in fact
      using Docker Hub as a sort of CI).
      - Use newer Golang image.
      - Small corrections to README.
      - More streamlined Makefile.
      - Added groff to image.
      - Added XeTex to image.
      6e4581c7
      History
      Updates.
      nimrod authored
      - Use newer runas script, using gosu instead of sudo.
      - Added test steps to the build using the example presentation (in fact
      using Docker Hub as a sort of CI).
      - Use newer Golang image.
      - Small corrections to README.
      - More streamlined Makefile.
      - Added groff to image.
      - Added XeTex to image.
    Dockerfile 1.06 KiB
    FROM golang:1.11-alpine3.8 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 apt-get update && \
        DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
            fonts-font-awesome \
            gosu \
            graphviz \
            groff \
            lmodern \
            make \
            pandoc \
            texlive-extra-utils \
            texlive-fonts-extra \
            texlive-fonts-recommended \
            texlive-font-utils \
            texlive-latex-base \
            texlive-latex-extra \
            texlive-luatex \
            texlive-publishers \
            texlive-xetex \
        && \
        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" ]
    CMD [ "on-change", ".", "make" ]
    VOLUME /volume
    WORKDIR /volume
    ENV HOME /volume
    # Run a test build.
    COPY example/ /example/
    RUN make -C /example all clean