Files
coder-images/php/Dockerfile.php74
T
2025-11-14 01:33:57 +00:00

41 lines
1.1 KiB
Docker

FROM registry.bobert.me/anthorob/coder-images:base@sha256:0338f8b6fd1be44a5b85182a6c652362ccb5b43776ce5c7d1ccd205402765305
USER root
RUN apt-get update && \
add-apt-repository ppa:ondrej/php && \
apt-get update && \
apt-get install -y --no-install-recommends \
php7.4 \
php7.4-cli \
php7.4-common \
php7.4-curl \
php7.4-mbstring \
php7.4-mysql \
php7.4-xml \
php7.4-zip \
php7.4-bcmath \
php7.4-soap \
php7.4-readline \
php7.4-intl \
php7.4-opcache \
php7.4-gd \
php7.4-pgsql \
php7.4-sqlite3 \
php7.4-tokenizer \
php7.4-fileinfo && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/php php /usr/bin/php7.4 74 && \
update-alternatives --set php /usr/bin/php7.4
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