2017-10-22 23:29:20 +02:00
|
|
|
FROM debian:jessie-slim
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y install git ca-certificates zlib1g-dev curl \
|
|
|
|
dpkg fakeroot sed gawk grep bash xz-utils make build-essential clang \
|
|
|
|
libgmp-dev
|
|
|
|
RUN curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C /usr/bin '*/stack'
|
2017-03-19 16:24:52 +01:00
|
|
|
RUN mkdir -p /etc/stack
|
2017-10-22 23:29:20 +02:00
|
|
|
#RUN echo "build: { split-objs: true }" > /etc/stack/config.yaml
|
2017-03-19 16:24:52 +01:00
|
|
|
RUN mkdir -p /usr/src/
|
|
|
|
WORKDIR /usr/src/
|
|
|
|
RUN git clone https://github.com/jgm/pandoc
|
|
|
|
WORKDIR /usr/src/pandoc
|
2017-10-22 23:29:20 +02:00
|
|
|
RUN stack setup
|
2017-03-19 16:24:52 +01:00
|
|
|
RUN stack install --stack-yaml stack.pkg.yaml --only-dependencies \
|
|
|
|
--flag 'pandoc:embed_data_files' \
|
|
|
|
pandoc pandoc-citeproc
|
|
|
|
CMD git pull && \
|
|
|
|
git checkout -b work $TREE && \
|
2017-10-22 23:29:20 +02:00
|
|
|
ARTIFACTS=/artifacts sh make_linux.sh
|