-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (20 loc) · 1.01 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
ARG ALPINE_VERSION=latest
FROM drpsychick/texlive-pdflatex:$ALPINE_VERSION
ENV PATH=/usr/local/texlive/bin/x86_64-linux:/usr/local/texlive/bin/x86_64-linuxmusl:$PATH
RUN wget https://netcologne.dl.sourceforge.net/project/guitartex/GuitarTeX/GuitarTeX-2.8.2/guitartex-2.8.2-fix1.tar.gz && \
tar xzf guitartex-2.8.2-fix1.tar.gz && \
# fix shell and input encoding = utf8
sed -i -e 's#/bin/bash#/bin/sh#' guitartex-2.8.2/install.sh && \
sed -i -e 's/latin1/utf8/' guitartex-2.8.2/gtx2tex.pl && \
(cd guitartex-2.8.2; ./install.sh) && \
mkdir -p /root/texmf/tex/latex/local/ && \
cp -r guitartex-2.8.2/.TeX/gchords.sty /root/texmf/tex/latex/local/ && \
chmod go+r /root/texmf/tex/latex/local/* && \
cp guitartex-2.8.2/guitartex.conf /root/.guitartexrc && \
rm -rf guitartex-2.8.2* && \
texhash
RUN sed -i -e "s#thumbpdf \$outfilename#sh -c 'thumbpdf \$outfilename'#" /usr/local/bin/gtx2tex
# mount your .gtx files here, including .guitartexrc
VOLUME ["/data"]
WORKDIR /data
CMD ["gtx2tex"]