ubuntu.Dockerfile 664 B

123456789101112131415161718192021222324
  1. FROM ubuntu:focal AS builder
  2. RUN apt-get -q --no-allow-insecure-repositories update \
  3. && DEBIAN_FRONTEND=noninteractive \
  4. apt-get install --assume-yes --no-install-recommends \
  5. ca-certificates curl make zip
  6. WORKDIR /app
  7. COPY . /app
  8. RUN make archives
  9. FROM pandoc/ubuntu-latex:2.10.1
  10. RUN apt-get -q --no-allow-insecure-repositories update \
  11. && DEBIAN_FRONTEND=noninteractive \
  12. apt-get install --assume-yes --no-install-recommends make \
  13. && rm -rf /var/lib/apt/lists/* \
  14. && tlmgr install preprint
  15. COPY --from=builder /app/dist/pandoc-scholar /opt/pandoc-scholar
  16. ENV PANDOC_SCHOLAR_PATH=/opt/pandoc-scholar
  17. ENTRYPOINT ["/usr/bin/make"]