2023-10-27 23:03:32 -06:00
|
|
|
FROM alpine AS base
|
|
|
|
RUN apk --no-cache add \
|
|
|
|
build-base \
|
|
|
|
hugo \
|
|
|
|
rsync \
|
|
|
|
openssh-client \
|
|
|
|
python3 \
|
|
|
|
curl \
|
|
|
|
ca-certificates \
|
|
|
|
git
|
|
|
|
RUN curl -L https://go.dev/dl/go1.21.3.linux-armv6l.tar.gz | gunzip | tar x -C /opt -f -
|
|
|
|
RUN ln -s /opt/go/bin/* /usr/local/bin/
|
|
|
|
|
|
|
|
|
|
|
|
FROM base AS runner-build
|
|
|
|
WORKDIR /src
|
|
|
|
RUN git clone https://gitea.com/gitea/act_runner
|
|
|
|
RUN CGO_ENABLED=0 make -C act_runner build
|
|
|
|
|
|
|
|
FROM base
|
|
|
|
COPY --from=runner-build /src/act_runner/act_runner /usr/local/bin
|
|
|
|
RUN adduser -D builder
|
|
|
|
USER builder
|
|
|
|
WORKDIR /app
|
2023-10-27 23:09:39 -06:00
|
|
|
ENTRYPOINT [ "/usr/local/bin/act_runner" ]
|