From 13ac6917cd38bbb0466799059b10cd83e4cc89e4 Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Thu, 11 Jul 2024 20:14:38 +0000 Subject: [PATCH] Update images/actions/php-8.2/Dockerfile --- images/actions/php-8.2/Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/images/actions/php-8.2/Dockerfile b/images/actions/php-8.2/Dockerfile index 89d2f43..b13e400 100644 --- a/images/actions/php-8.2/Dockerfile +++ b/images/actions/php-8.2/Dockerfile @@ -1,3 +1,20 @@ FROM php:8.2-alpine RUN apk add nodejs git curl composer bash sudo + +RUN apk add --update --no-cache \ +bash sudo ca-certificates openssl openssh-client \ +git git-lfs wget curl \ +zip unzip xz zstd jq \ +nodejs python3 py3-pip + +RUN adduser -D runner \ + && echo "runner ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/runner \ + && chmod 0440 /etc/sudoers.d/runner + +RUN chmod -R 777 /opt + +WORKDIR /home/runner + +CMD ["/bin/bash"] +USER runner \ No newline at end of file