Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fedemaleh committed Jul 5, 2024
1 parent a05149b commit fe1ed3f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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
Expand All @@ -29,4 +33,4 @@ RUN chmod +x start.sh

USER docker

ENTRYPOINT ["./start.sh"]
ENTRYPOINT ["./start.sh"]

0 comments on commit fe1ed3f

Please sign in to comment.