-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (30 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
39 lines (30 loc) · 1.16 KB
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
FROM sphinxdoc/sphinx:5.3.0
# インストール作業用ディレクトリ
WORKDIR /root
# Pandocのバージョン
ENV PANDOC_VERSION=2.19.2
# txのバージョン
ENV TX_VERSION=v1.6.4
# txコマンド (Transifex Client) のAPIトークン
# 【注意】ホスト側シェルの環境変数から渡すこと
# 例: docker run -e TX_TOKEN ...
ENV TX_TOKEN ""
# インストール: curl, git, pandoc (本家からdebバイナリをダウンロード)
RUN apt-get update && \
apt-get install -y curl git && \
curl -L -o pandoc.deb https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-1-amd64.deb && \
dpkg -i pandoc.deb && \
rm -f pandoc.deb
# Transifex Client (new version)
RUN curl -sSL -O https://github.com/transifex/cli/releases/download/${TX_VERSION}/tx-linux-amd64.tar.gz && \
tar zxf tx-linux-amd64.tar.gz && \
mv tx /usr/local/bin && \
rm tx-linux-amd64.tar.gz
# Sphinxドキュメント用ディレクトリ
WORKDIR /docs
# Python (pip)
ADD requirements.txt ./
RUN pip install -r requirements.txt
# make ja-html: pandoc-jpサイトをビルド
# (これ以降はMakefileを参照)
CMD ["make", "ja-html"]