-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (27 loc) · 1.09 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
# AMB: Dockerfile to create an image with pandoc, pandocomatic,
# and what's necessary for generating docx documents.
FROM agusmba/pandocomatic:base-0.0.3
# utf problem with official ruby docker images. See https://oncletom.io/2015/docker-encoding/
# ENV LANG C.UTF-8
ENV PANDOC_VERSION="2.11.0.2" \
DEB_PKG_REVISION="1" \
PANDOCOMATIC_VERSION="0.2.7.3"
LABEL maintainer="Agustín Martín Barbero ([email protected])" \
version="${PANDOCOMATIC_VERSION}-pandoc-${PANDOC_VERSION}"
# Install requirements
# RUN apt-get update \
# && apt-get install -y --no-install-recommends \
# curl \
# ruby \
# && rm -fr /var/lib/apt/lists/*
# Install pandoc
RUN curl -fLsS -o pandoc.deb https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-${DEB_PKG_REVISION}-amd64.deb \
&& apt-get install ./pandoc.deb \
&& rm ./pandoc.deb
# Install pandocomatic
RUN gem install pandocomatic -v "=${PANDOCOMATIC_VERSION}"
# Default dir
WORKDIR /source
# Copy templates?
# Default CMD
CMD [ "pandocomatic", "-v"]