forked from akkyie/thesis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
45 lines (34 loc) · 1007 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
36
37
38
39
40
41
42
43
44
45
FROM ubuntu:latest
ENV REDPEN_VERSION=1.10.1
ENV GHR_VERSION=0.12.0
# https://askubuntu.com/q/909277
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade \
&& apt-get -y install \
git \
make \
texlive \
texlive-lang-cjk \
texlive-latex-extra \
latexmk \
default-jre \
curl \
&& rm -rf /var/lib/apt/lists/* \
nodejs \
npm \
imagemagick
RUN mkdir /redpen \
&& curl -#Lo - https://github.com/redpen-cc/redpen/releases/download/redpen-${REDPEN_VERSION}/redpen-${REDPEN_VERSION}.tar.gz \
| tar xz -C /redpen --strip-components 1
ENV REDPEN /redpen/bin/redpen
RUN mkdir /ghr \
&& curl -#Lo - https://github.com/tcnksm/ghr/releases/download/v${GHR_VERSION}/ghr_v${GHR_VERSION}_linux_amd64.tar.gz \
| tar xz -C /ghr --strip-components 1
ENV GHR /ghr/ghr
VOLUME thesis
WORKDIR thesis
RUN n latest \
&& sudo apt purge nodejs npm \
&& export PATH=/usr/local/bin/node:$PATH
# textlintはコンテナ内で直接作業した 更新忘れ
CMD ["make"]