Files
ci-env/Dockerfile
T
2026-11-05 02:54:20 +00:00

17 lines
1.2 KiB
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# Chromium 的系統依賴與字型和 scripts/chromium-deps.sh 同一份清單;沒有字型 Chromium 會當掉
RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends \
ca-certificates curl git make xz-utils python3 \
libcups2t64 libxres1 libavahi-client3 libavahi-common3 libasound2t64 libatk1.0-0t64 libatk-bridge2.0-0t64 libatspi2.0-0t64 libcairo2 libdrm2 libgbm1 \
libnspr4 libnss3 libpango-1.0-0 libxcomposite1 libxdamage1 libxfixes3 libxkbcommon0 libxrandr2 \
libfontconfig1 libfreetype6 libfribidi0 libharfbuzz0b libpixman-1-0 libpng16-16t64 libthai0 \
libxcb-render0 libxcb-shm0 libxi6 libxrender1 libdatrie1 libgraphite2-3 \
fonts-dejavu-core fonts-wqy-microhei \
&& rm -rf /var/lib/apt/lists/*
# Go 與 Node 不放進映像檔:版本由 Gitea 的 Actions 變數 GO_VERSION、NODE_VERSION 指定,entrypoint.sh 依版本下載到快取(.ci-home/toolchains)
ENV GOFLAGS=-buildvcs=false
# 腳本打包進映像檔(action 在獨立的 repo,呼叫端的 workspace 裡沒有這些檔案);發佈新版時要換標籤,runner 才會重建映像檔
COPY . /action
ENTRYPOINT ["/bin/bash", "/action/entrypoint.sh"]