-
Notifications
You must be signed in to change notification settings - Fork 84
/
Dockerfile
47 lines (37 loc) · 1.07 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
FROM perl:5.40.0-slim-threaded-buster
#
# Docker necessary file
#
# Build:
# docker build . \
# -t <maintainer>/latexindent:<version tag> \
# --build-arg LATEXINDENT_VERSION=<version tag>
#
# Run:
# docker run --rm -it <maintainer>/latexindent:<version tag> -h
#
# Publish:
# docker push <maintainer>/latexindent:<version tag>
#
# Note: see also .github/workflows/release-docker-ghcr.yml
#
ARG LATEXINDENT_VERSION
ENV LATEXINDENT_VERSION ${LATEXINDENT_VERSION:-V3.24.4}
RUN apt-get update \
&& apt-get install \
build-essential \
ca-certificates \
cmake \
git \
wget \
-y -qq --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
RUN git clone --depth 1 https://github.com/cmhughes/latexindent.pl --branch "${LATEXINDENT_VERSION}"
WORKDIR /latexindent.pl/helper-scripts
RUN echo "Y" | perl latexindent-module-installer.pl
WORKDIR /latexindent.pl/build
RUN cmake ../path-helper-files && make install && ln -s /usr/local/bin/latexindent.pl /usr/local/bin/latexindent
WORKDIR /
ENTRYPOINT ["latexindent"]