Files
coder-images/php/Dockerfile.php82
T
anthorob c938c4df5a
Build PHP Images / build (82) (push) Failing after 9s
Build Java Images / build (21) (push) Failing after 13s
Build PHP Images / build (84) (push) Failing after 8s
Build Python Images / build (push) Failing after 8s
fix workflow
2026-03-18 09:03:13 -04:00

41 lines
1.1 KiB
Docker

FROM gitea.bobert.me/anthorob/coder-base:latest@sha256:ff48bd8e316d473090f664a69514bc1efc1badfed81e293f97fcb610be8530b3
USER root
RUN apt-get update && \
add-apt-repository ppa:ondrej/php && \
apt-get update && \
apt-get install -y --no-install-recommends \
php8.2 \
php8.2-cli \
php8.2-common \
php8.2-curl \
php8.2-mbstring \
php8.2-mysql \
php8.2-xml \
php8.2-zip \
php8.2-bcmath \
php8.2-soap \
php8.2-readline \
php8.2-intl \
php8.2-opcache \
php8.2-gd \
php8.2-pgsql \
php8.2-sqlite3 \
php8.2-tokenizer \
php8.2-fileinfo && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/php php /usr/bin/php8.2 82 && \
update-alternatives --set php /usr/bin/php8.2
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
USER coder
ENV NVM_DIR=/home/coder/.nvm
RUN mkdir -p $NVM_DIR && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
WORKDIR /home/coder