add java and php images

This commit is contained in:
anthorob committed 2025-07-08 10:18:15 -04:00
1 parent 711d72a2ab
commit b14ec7a61b
9 files changed
+136 -4

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
FROM registry.bobert.me/anthorob/coder-images:base
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
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
USER coder
WORKDIR /home/coder