22 lines
No EOL
550 B
Docker
22 lines
No EOL
550 B
Docker
FROM registry.opensuse.org/opensuse/leap:15.5
|
|
|
|
# Installing Dependencies
|
|
RUN zypper -n update
|
|
RUN zypper -n install \
|
|
dracut docker python3-docker-compose sudo \
|
|
openssh git git-lfs wget \
|
|
zip unzip xz zstd \
|
|
nodejs20 python3 python3-pip
|
|
|
|
# Settting up User
|
|
RUN useradd -u 1001 runner
|
|
RUN systemctl enable docker
|
|
RUN groupmod -g 998 docker
|
|
RUN usermod -aG docker runner
|
|
RUN newgrp docker
|
|
RUN echo "runner ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/runner
|
|
RUN sudo chmod 666 /var/run/docker.sock
|
|
|
|
WORKDIR /home/runner
|
|
|
|
USER runner |