27 lines
678 B
Docker
27 lines
678 B
Docker
FROM public.ecr.aws/debian/debian:stable AS base
|
|
RUN apt-get -y update; apt-get -y install --no-install-recommends \
|
|
build-essential \
|
|
podman \
|
|
arduino \
|
|
rsync \
|
|
openssh-client \
|
|
python3 \
|
|
curl \
|
|
git
|
|
COPY --from=big-builder:golang /opt/go /opt/go/
|
|
RUN ln -s /opt/go/bin/* /usr/local/bin/
|
|
|
|
FROM base AS runner
|
|
RUN curl -L https://gitea.com/gitea/act_runner/archive/v0.2.6.tar.gz | gunzip | tar x -C /opt
|
|
RUN CGO_ENABLED=0 make -C /opt/act_runner build
|
|
|
|
FROM base
|
|
COPY --from=runner /opt/act_runner/act_runner /usr/local/bin/
|
|
RUN apt-get -y install \
|
|
hugo \
|
|
zip
|
|
RUN useradd builder -md /app
|
|
USER builder
|
|
WORKDIR /app
|
|
ENTRYPOINT [ "/usr/local/bin/act_runner" ]
|