diff --git a/Dockerfile b/Dockerfile index cb7164a..eacddd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,12 @@ ARG DEBIAN_FRONTEND=noninteractive ENV PORT=8080 RUN apt-get update && \ - apt-get install -y build-essential curl wget git tar gzip bzip2 zip unzip xz-utils ca-certificates software-properties-common docker.io awscli mysql-client-core-8.0 jq nodejs libssl-dev libdigest-sha-perl && \ - useradd -m docker -g docker && \ + apt-get install -y build-essential curl wget git tar gzip bzip2 zip unzip xz-utils ca-certificates software-properties-common docker.io mysql-client-core-8.0 jq nodejs libssl-dev libdigest-sha-perl sudo && \ + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ + unzip awscliv2.zip && \ + ./aws/install && \ + useradd -m -g docker -G sudo docker && \ + echo 'docker ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/docker && \ mkdir -p /home/docker/actions-runner && \ mkdir -p -m 755 /etc/apt/keyrings && \ wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null && \ @@ -18,9 +22,9 @@ RUN apt-get update && \ WORKDIR /home/docker/actions-runner -RUN curl -o actions-runner-${ARCH}-${VERSION}.tar.gz -L https://github.com/actions/runner/releases/download/v${VERSION}/actions-runner-${ARCH}-${VERSION}.tar.gz && \ - tar xzf ./actions-runner-${ARCH}-${VERSION}.tar.gz && \ - rm ./actions-runner-${ARCH}-${VERSION}.tar.gz && \ +RUN curl -o actions-runner-${ARCH}-2.315.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.315.0/actions-runner-${ARCH}-2.315.0.tar.gz && \ + tar xzf ./actions-runner-${ARCH}-2.315.0.tar.gz && \ + rm ./actions-runner-${ARCH}-2.315.0.tar.gz && \ chown -R docker ~docker COPY start.sh start.sh @@ -29,4 +33,4 @@ RUN chmod +x start.sh USER docker -ENTRYPOINT ["./start.sh"] +ENTRYPOINT ["./start.sh"] \ No newline at end of file