-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
76 lines (65 loc) · 2.08 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM ubuntu:latest
MAINTAINER Ben Wilson <ben@merovex.com>
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_PRIORITY critical
ENV DEBCONF_NOWARNINGS yes
ENV GHR_VERSION="0.13.0"
RUN apt-get update -q \
&& apt-get install -qy \
ruby \
wget
# git \
# curl \
# bash \
# ca-certificates \
# jq \
# zip \
# libfontconfig1 \
# fontconfig
# # Install LaTeX
# RUN apt-get update -q \
# && apt-get install -qy \
# texlive-latex-base \
# texlive-latex-recommended \
# texlive-luatex \
# texlive-bibtex-extra \
# biber \
# texlive-xetex \
# texlive-fonts-extra
# # texlive-fonts-recommended
#
RUN rm -rf /var/lib/apt/lists/*
RUN mkdir -p ./cache
# Install all Google Web Fonts
# RUN apt-get install -y git fontconfig
# RUN apt add --no-cache bash curl ncurses coreutils grep
# RUN git clone https://github.com/google/fonts.git
# RUN mkdir -p /usr/share/fonts/truetype/google-fonts/
# RUN find $PWD/fonts/ -name "*.ttf" -exec install -m644 {} /usr/share/fonts/truetype/google-fonts/ \; || return 1
# RUN fc-cache -f -v
# # Install Fonts
# ADD fonts/* /usr/share/fonts/
# RUN fc-cache -fv
# Install Scripts
ADD ./wordcount.rb /usr/local/bin/
ADD ./wordcount.lua /usr/local/bin/
ADD ./fetch-pandoc.sh /usr/local/bin/
RUN chmod 755 /usr/local/bin/*.*
COPY ./entrypoint.sh /entrypoint.sh
# # Install Templates
# RUN mkdir -p /usr/local/share/templates
# ADD templates /usr/local/share/templates
# Install PANDOC
ARG PANDOC_VERSION=2.9.2.1
RUN fetch-pandoc.sh ${PANDOC_VERSION} ./cache/pandoc.deb && \
dpkg --install ./cache/pandoc.deb && \
rm -f ./cache/pandoc.deb
# # Enable ability to upload multiple artifacts to GitHub Release in parallel
# RUN cd /tmp \
# && wget --output-document=ghr.tgz "https://github.com/tcnksm/ghr/releases/download/v${GHR_VERSION}/ghr_v${GHR_VERSION}_linux_amd64.tar.gz" \
# && tar -xvzf ghr.tgz \
# && mv ghr_v${GHR_VERSION}_linux_amd64/ghr /usr/local/bin
# RUN rm -rf /tmp/*
# Create Entrypoint for Github Actions
RUN chmod 755 /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]