Skip to content

Commit 67285df

Browse files
committed
Update: [Dockerfile] Twitter GraphQL API を叩くために必要な Google Chrome とサイズ小さめの日本語フォントをインストールする
多少 Docker イメージがデカくなるがやむを得ない… (runtime 版 を base 版に変更してプラマイゼロになっている…か…?)
1 parent d7d4a92 commit 67285df

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

Dockerfile

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,38 @@ ENV DEBIAN_FRONTEND=noninteractive
6767
## QSVEncC: Intel Media VA Driver (non-free 版), Intel 版 OpenCL が必要
6868
## NVEncC: runtime 版には含まれているが base 版には含まれていない cuda-nvrtc-12-8, libnpp-12-8 をインストールする
6969
## VCEEncC: AMDGPU-PRO Driver (proprietary 版) に含まれる AMD AMF (Advanced Media Framework), AMD 版 OpenCL が必要
70-
## 実行時イメージなので RUN の最後に掃除する
71-
## ref: https://dgpu-docs.intel.com/driver/client/overview.html
72-
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git gpg tzdata && \
70+
## Zendriver: Twitter GraphQL API を叩くために必要な Google Chrome とサイズ小さめの日本語フォントをインストールする
71+
## ref: https://github.com/rigaya/QSVEnc/blob/master/Install.ja.md
72+
## ref: https://github.com/rigaya/VCEEnc/blob/master/Install.ja.md
73+
RUN apt-get update && \
74+
# リポジトリ追加に必要な最低限のパッケージをインストール
75+
apt-get install -y --no-install-recommends ca-certificates curl git gpg tzdata && \
76+
# Intel GPU リポジトリ
7377
curl -fsSL https://repositories.intel.com/gpu/intel-graphics.key | gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics-keyring.gpg && \
74-
curl -fsSL https://repo.radeon.com/rocm/rocm.gpg.key | gpg --dearmor -o /usr/share/keyrings/rocm-keyring.gpg && \
7578
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics-keyring.gpg] https://repositories.intel.com/gpu/ubuntu jammy unified' > /etc/apt/sources.list.d/intel-gpu-jammy.list && \
79+
# AMD / ROCm リポジトリ
80+
curl -fsSL https://repo.radeon.com/rocm/rocm.gpg.key | gpg --yes --dearmor --output /usr/share/keyrings/rocm-keyring.gpg && \
7681
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/rocm-keyring.gpg] https://repo.radeon.com/amdgpu/6.4.4/ubuntu jammy main' > /etc/apt/sources.list.d/amdgpu.list && \
7782
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/rocm-keyring.gpg] https://repo.radeon.com/amdgpu/6.4.4/ubuntu jammy proprietary' > /etc/apt/sources.list.d/amdgpu-proprietary.list && \
7883
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/rocm-keyring.gpg] https://repo.radeon.com/rocm/apt/6.4.4 jammy main' > /etc/apt/sources.list.d/rocm.list && \
84+
# Google Chrome リポジトリ
85+
curl -fsSL https://dl.google.com/linux/linux_signing_key.pub | gpg --yes --dearmor --output /usr/share/keyrings/google-chrome-keyring.gpg && \
86+
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome-keyring.gpg] https://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/google-chrome.list && \
87+
# リポジトリを更新し、この時点で利用可能なパッケージをアップグレード
7988
apt-get update && apt-get upgrade -y && \
89+
# 必要なパッケージをインストール
8090
apt-get install -y --no-install-recommends \
91+
# フォント関連のライブラリ
8192
libfontconfig1 libfreetype6 libfribidi0 \
93+
# Intel GPU 関連のライブラリ
8294
intel-media-va-driver-non-free intel-opencl-icd libigfxcmrt7 libmfx1 libmfxgen1 libva-drm2 libva-x11-2 ocl-icd-opencl-dev \
95+
# NVIDIA GPU 関連のライブラリ
8396
cuda-nvrtc-12-8 libnpp-12-8 \
84-
amf-amdgpu-pro libamdenc-amdgpu-pro libdrm2-amdgpu ocl-icd-libopencl1 rocm-opencl-runtime vulkan-amdgpu-pro && \
97+
# AMD GPU 関連のライブラリ
98+
amf-amdgpu-pro libamdenc-amdgpu-pro libdrm2-amdgpu ocl-icd-libopencl1 rocm-opencl-runtime vulkan-amdgpu-pro \
99+
# Zendriver 用に Google Chrome と日本語フォントをインストール
100+
google-chrome-stable fonts-vlgothic && \
101+
# 実行時イメージなので RUN の最後に掃除する
85102
apt-get -y autoremove && \
86103
apt-get -y clean && \
87104
rm -rf /var/lib/apt/lists/* && \

0 commit comments

Comments
 (0)