26 lines
577 B
Docker
26 lines
577 B
Docker
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
|
|
ENTRYPOINT [ "/usr/local/bin/act_runner" ]
|