-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (26 loc) · 847 Bytes
/
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
FROM pandoc/latex:latest-ubuntu
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
git \
curl
RUN curl -sSL https://get.haskellstack.org/ | sh
WORKDIR /
RUN git clone https://github.com/jez/pandoc-sidenote
WORKDIR /pandoc-sidenote
RUN stack build
RUN stack install
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
python3 \
python3-pip \
python3-venv
RUN python3 -m venv /venv
RUN . /venv/bin/activate && \
python3 -m pip install --upgrade pip
RUN mkdir -p /src
COPY src/requirements.txt /src/requirements.txt
RUN . /venv/bin/activate && \
python3 -m pip install -r /src/requirements.txt
WORKDIR /
COPY src/ /src
ENTRYPOINT bash /src/build.sh /content /content-rendered /docs /meta