Add supervisord-dependent-startup, restructure file layout

This commit is contained in:
2024-04-19 17:07:54 +00:00
parent 67df113caf
commit 8200cfeb8a
5 changed files with 56 additions and 1 deletions

View File

@ -13,13 +13,19 @@ RUN make clean && make build
FROM docker:25.0.5-dind
USER root
RUN apk add --no-cache \
git bash supervisor
git bash supervisor python3 py3-pip
RUN pip3 install --break-system-packages supervisord-dependent-startup
COPY --from=builder /opt/src/act_runner/act_runner /usr/local/bin/act_runner
COPY --from=builder /opt/src/act_runner/scripts/supervisord.conf /etc/supervisord.conf
COPY --from=builder /opt/src/act_runner/scripts/run.sh /opt/act/run.sh
COPY --from=builder /opt/src/act_runner/scripts/rootless.sh /opt/act/rootless.sh
COPY /root /
RUN chmod +x /healthcheck.sh
ENV DOCKER_PRUNE_INTERVAL="0 0 * * *"
# Add Crontab for root user