This commit is contained in:
ai-dev
2024-11-01 18:10:15 +01:00
parent 4a50886434
commit bde29c6731
3 changed files with 65 additions and 5 deletions

View File

@ -10,7 +10,7 @@ ARG \
# Install necessary dependencies
RUN apk add --no-cache git docker-cli python3 py3-pip && \
curl -s https://raw.githubusercontent.com/nektos/act/master/install.sh | bash
RUN adduser -s /bin/false -D -H actrunner
# Create a directory for the virtual environment and install Ansible inside it
RUN python3 -m venv /opt/ansible-venv && \
/opt/ansible-venv/bin/pip install --no-cache-dir ansible
@ -18,10 +18,8 @@ RUN python3 -m venv /opt/ansible-venv && \
# Optional: Additional steps for SSH/GitHub authentication or configuration
# Copy your add-on scripts and configuration files
COPY run.sh /run.sh
RUN chmod +x /run.sh
CMD [ "/run.sh" ]
COPY rootfs /
RUN chmod +x /etc/services.d/actrunner/*
# Labels
LABEL \