27 lines
788 B
Docker
27 lines
788 B
Docker
FROM gitea/act_runner:nightly
|
|
|
|
USER root
|
|
|
|
RUN apk update || true && \
|
|
(apk add --no-cache bash curl jq git coreutils dos2unix || \
|
|
(apt-get update && apt-get install -y bash curl jq git coreutils dos2unix)) && \
|
|
mkdir -p /app /work /root/.4nk_template && chmod 700 /root/.4nk_template
|
|
|
|
WORKDIR /app
|
|
|
|
# Copier les scripts agents
|
|
COPY scripts /work/scripts
|
|
|
|
# Normaliser les fins de ligne et permissions
|
|
RUN find /work/scripts -type f -name "*.sh" -print0 | xargs -0 -r dos2unix -f && \
|
|
find /work/scripts -type f -name "*.sh" -exec chmod +x {} +
|
|
|
|
# Entrypoint unifié: lance le runner si variables présentes, sinon agents
|
|
COPY docker/entrypoint.ci.sh /entrypoint.sh
|
|
RUN dos2unix -f /entrypoint.sh && chmod +x /entrypoint.sh
|
|
|
|
WORKDIR /work
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|