php8-cli-actrunner/Dockerfile

29 lines
733 B
Docker
Raw Normal View History

2024-07-26 11:44:19 +02:00
FROM php:8.3-cli
RUN apt-get update
# Git, curl, GnuPG, php dependencies
RUN apt-get -y install curl zip gnupg git git-lfs libfreetype-dev libzip-dev\
libjpeg62-turbo-dev libpng-dev libxml2-dev
# PHP extensions
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd
RUN docker-php-ext-install -j$(nproc) zip
RUN docker-php-ext-install -j$(nproc) soap
# Composer
COPY --from=composer/composer:latest-bin /composer /usr/bin/composer
# Node.js
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get -y install nodejs
RUN ln -s /usr/bin/node /usr/local/bin/node
# PNPM
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN pnpm --version