27 lines
587 B
Docker
27 lines
587 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
|
||
|
COPY entrypoint.sh /
|
||
|
RUN adduser -D builder
|
||
|
USER builder
|
||
|
WORKDIR /app
|
||
|
ENTRYPOINT [ "/entrypoint.sh" ]
|