Skip to content

Commit

Permalink
Fix dockerfile to use cache when building images
Browse files Browse the repository at this point in the history
  • Loading branch information
p1ass committed Oct 26, 2019
1 parent 30f59fd commit a1edf70
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
FROM ubuntu
FROM ubuntu:18.04

ENV DEBIAN_FRONTEND=noninteractive

ADD mdtopdf /usr/local/bin
ADD mdtotex /usr/local/bin
ADD watcher /usr/local/bin
ADD w-mdtopdf /usr/local/bin
ADD w-mdtotex /usr/local/bin
ADD crossref_config.yaml /config/crossref_config.yaml

RUN apt update && \
apt upgrade -y && \
apt install wget texlive-luatex texlive-lang-cjk lmodern texlive-xetex -y && \
apt-get clean
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN wget https://github.com/jgm/pandoc/releases/download/2.7.2/pandoc-2.7.2-1-amd64.deb && \
dpkg -i pandoc-2.7.2-1-amd64.deb && \
wget https://github.com/lierdakil/pandoc-crossref/releases/download/v0.3.4.1/linux-pandoc_2_7_2.tar.gz && \
tar -zxvf linux-pandoc_2_7_2.tar.gz && \
mv pandoc-crossref /usr/local/bin


COPY scripts/ /usr/local/bin/
COPY crossref_config.yaml /config/crossref_config.yaml

VOLUME /workdir
WORKDIR /workdir
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a1edf70

Please sign in to comment.