26 lines
800 B
Docker
26 lines
800 B
Docker
# SPDX-FileCopyrightText: 2023 - 2024 Daniel Wolf <nephatrine@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: ISC
|
|
|
|
FROM code.nephatrine.net/nephnet/nxb-alpine:latest-golang AS builder
|
|
|
|
ARG ACT_RUNNER_VERSION=v0.2.8
|
|
RUN git -C /root clone -b "$ACT_RUNNER_VERSION" --single-branch --depth=1 https://gitea.com/gitea/act_runner.git
|
|
WORKDIR /root/act_runner
|
|
|
|
ARG TAGS="sqlite sqlite_unlock_notify cgo"
|
|
RUN make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 )) build
|
|
|
|
# ------------------------------
|
|
|
|
# hadolint ignore=DL3007
|
|
FROM code.nephatrine.net/nephnet/alpine-s6:latest
|
|
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
|
|
|
|
# hadolint ignore=DL3018
|
|
RUN apk add --no-cache curl docker git git-lfs jq npm \
|
|
&& rm -rf /tmp/* /var/tmp/*
|
|
|
|
COPY --from=builder /root/act_runner/act_runner /usr/bin/
|
|
COPY override /
|