ContainersWorkspace/gitea-runner/Containerfile

21 lines
509 B
Text
Raw Permalink Normal View History

2023-11-15 14:54:00 +00:00
FROM quay.io/podman/stable
RUN mkdir -p /opt /var/run && \
ln -sf /podman/docker.sock /var/run/docker.sock
2023-11-15 14:54:00 +00:00
RUN dnf install -y make go git && \
cd /tmp && \
git clone https://gitea.com/gitea/act_runner.git && \
cd act_runner && \
make build && \
mv /tmp/act_runner/act_runner /opt/ && \
chown podman /opt/act_runner && \
dnf remove -y make go git && \
dnf autoremove -y && \
dnf clean all && \
rm -rf /tmp/* /root/go
2023-11-15 14:54:00 +00:00
USER podman
ENTRYPOINT [ "/opt/act_runner" ]