-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
54 lines (43 loc) · 1.37 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
52
53
54
# SPDX-FileCopyrightText: 2024 Senne Van Baelen
#
# SPDX-License-Identifier: Apache-2.0
ARG APP_NAME=cowkit
ARG PANDOC_VERSION=latest-ubuntu
# there are issues with later versions for building the PDF!
# (svg images are not found)
#ARG PANDOC_VERSION=3.0-ubuntu
#ARG PANDOC_VERSION=latest
#FROM rust:${RUST_VERSION}-slim-bullseye AS build
#FROM pandoc/extra:$PANDOC_VERSION
FROM pandoc/latex:$PANDOC_VERSION
WORKDIR /app
RUN apt-get update && apt-get upgrade -y
# <https://github.com/krallin/tini>
# apt-get install tini
RUN apt-get install -y \
inotify-tools \
tini \
curl \
nodejs \
npm \
python3
RUN apt-get update
RUN apt-get install -y rsync
# install global node modues
# Note: npm adds about 0.5 GB, which is rather significant
# (including node_modules, etc.)
RUN npm install -g jsdom
RUN rm -rf /var/lib/apt/lists/*
RUN mkdir example
COPY . /data/example/
# move executables to PATH
RUN mv /data/example/utils/watcher_docker.sh /usr/local/bin/watcher.sh
RUN mv /data/example/utils/entrypoint.sh /usr/local/bin/cowkit.sh
RUN mv /data/example/utils/html_* /usr/local/bin/
## install other latex engine
#RUN curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net | sh
#RUN mv tectonic /usr/local/bin
#CMD ["app"]
#ENTRYPOINT ["pandoc", "--version"]
#ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
ENTRYPOINT ["/usr/bin/tini", "-g", "--", "cowkit.sh"]