runner-images/images/actions/php-8.2/Dockerfile
Jan Gleytenhoover a81b3e3955
Some checks failed
Build and Push Image / Build and push image (push) Failing after 20s
Update images/actions/php-8.2/Dockerfile
2024-07-21 11:08:17 +00:00

24 lines
No EOL
622 B
Docker

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 php8-pecl-xdebug
RUN apk add --no-cache curl patch openssh-client openldap-dev
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
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