-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
52 lines (43 loc) · 2.51 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM marcelhuberfoo/cabal-build
MAINTAINER Marcel Huber <[email protected]>
ARG PANDOC_VERSION
ARG GITIT_VERSION
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.docker.dockerfile="Dockerfile" \
org.label-schema.name="Pandoc and Gitit" \
org.label-schema.url="https://github.com/marcelhuberfoo/docker-pandoc-gitit" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/marcelhuberfoo/docker-pandoc-gitit" \
org.label-schema.version=${PANDOC_VERSION}_${GITIT_VERSION} \
org.label-schema.schema-version="1.0"
ENV PANDOC_VERSION=$PANDOC_VERSION
ENV GITIT_VERSION=$GITIT_VERSION
USER root
RUN echo -e '[infinality-bundle]\nSigLevel=Never\nServer = http://bohoomil.com/repo/$arch\n[infinality-bundle-fonts]\nSigLevel=Never\nServer = http://bohoomil.com/repo/fonts' >> /etc/pacman.conf && \
pacman -Syy --noconfirm --needed reflector && \
reflector --latest 10 --sort rate --save /etc/pacman.d/mirrorlist && \
pacman -Syyu --noconfirm --needed git parallel icu && printf "y\\ny\\n" | pacman -Scc
ADD PKGBUILD /nobody/gititbuild/PKGBUILD
RUN chown -R nobody:nobody /nobody
USER $UNAME
RUN bash -l -c 'sudo pacman -S --noconfirm --needed base-devel && cd gititbuild && \
makepkg --force --nodeps --cleanbuild && \
sudo pacman -U --noconfirm gitit-*.pkg.tar.xz && \
cd && rm -rf .cabal* gititbuild && \
printf "y\\ny\\n" | sudo pacman -Scc'
USER root
RUN pacman -Syy --noconfirm --needed fontconfig-infinality-ultimate freetype2-infinality-ultimate cairo-infinality-ultimate ibfonts-meta-base && printf "y\\ny\\n" | pacman -Scc
RUN pacman -S --noconfirm --needed python-pip texlive-bibtexextra texlive-fontsextra texlive-formatsextra texlive-genericextra texlive-latexextra texlive-pictures texlive-plainextra texlive-pstricks texlive-publishers texlive-science inkscape gtk2 graphviz mime-types jre8-openjdk-headless pkg-config && \
printf "y\\ny\\n" | pacman -Scc
RUN pip install pandocfilters pygraphviz
RUN cd / && git clone --single-branch --branch master --depth 1 https://github.com/marcelhuberfoo/pandocfilters.git filters
RUN chmod -R 0755 /filters
COPY plantuml /usr/local/bin/plantuml
RUN mkdir -p /opt/plantuml && curl -L -o /opt/plantuml/plantuml.jar http://sourceforge.net/projects/plantuml/files/plantuml.jar/download && chmod +x /usr/local/bin/plantuml
ADD entrypoint.sh /entrypoint.sh
RUN rm -f /tmp/* || true
EXPOSE 5001
#CMD ["gitit", "-f", "/data/gitit.conf"]
CMD ["pandoc", "--help"]