Files
build-go/Dockerfile
T
2026-11-05 02:54:21 +00:00

9 lines
621 B
Docker
Raw 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
# 建置模組 zip:Go 與 Node 由 ci-env/toolchain.sh 依 GO_VERSION、NODE_VERSION 下載到快取(不放進映像檔);打包用 python3;不需要 Chromium 的系統依賴
RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends ca-certificates curl git make xz-utils python3 \
&& rm -rf /var/lib/apt/lists/*
# 腳本打包進映像檔(action 在獨立的 repo,呼叫端的 workspace 裡沒有這些檔案);發佈新版時要換標籤,runner 才會重建映像檔
COPY . /action
ENTRYPOINT ["/bin/bash", "/action/entrypoint.sh"]