Dockerfiles/act_runner.dockerfile

27 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2024-06-18 23:51:20 +08:00
FROM ubuntu:24.04
2024-03-06 15:07:50 +08:00
LABEL maintainer="amass <168062547@qq.com>"
ENV DEBIAN_FRONTEND=noninteractive
2024-06-18 23:51:20 +08:00
ENV ACT_VERSION 0.2.10
RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list.d/ubuntu.sources \
2024-03-06 15:07:50 +08:00
&& apt update \
2024-06-30 23:24:49 +08:00
&& apt install -y ca-certificates curl git gettext jq tini \
2024-06-18 23:51:20 +08:00
&& curl https://gitea.com/gitea/act_runner/releases/download/v${ACT_VERSION}/act_runner-${ACT_VERSION}-linux-amd64 -o /usr/local/bin/act_runner \
2024-03-06 15:07:50 +08:00
&& chmod +x /usr/local/bin/act_runner \
&& install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc \
&& chmod a+r /etc/apt/keyrings/docker.asc \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
2024-03-08 14:29:53 +08:00
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
2024-03-06 15:07:50 +08:00
&& apt update \
2024-03-08 14:29:53 +08:00
&& apt install -y docker-ce-cli nodejs
2024-03-06 15:07:50 +08:00
COPY resources/act_runner.sh /opt/act/run.sh
2024-03-08 14:29:53 +08:00
ENTRYPOINT ["tini","--","/opt/act/run.sh"]
2024-06-30 23:24:49 +08:00
# docker build --progress tty -f act_runner.dockerfile -t frp-by1.wwvvww.cn:45288/act_runner:0.2.10 .
# docker push frp-by1.wwvvww.cn:45288/act_runner:0.2.10