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

+12
View File
@@ -0,0 +1,12 @@
.default_build_template: &build_template
stage: build
script:
- buildah info
- buildah bud --storage-driver=${STORAGE_DRIVER} -t ${FQ_IMAGE_NAME}:php${PHP_VERSION} -f Dockerfile.php${PHP_VERSION} .
- echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
- buildah push ${FQ_IMAGE_NAME}:php${PHP_VERSION}
build_php82:
<<: *build_template
variables:
PHP_VERSION: "82"
+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