AspireCloud/docker/cli/Dockerfile
dependabot[bot] 1597903fa7
build(deps): bump php from 6036312 to f12c223 in /docker/cli
Bumps php from `6036312` to `f12c223`.

---
updated-dependencies:
- dependency-name: php
  dependency-version: 8.4.12-cli-bookworm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-09 17:15:41 +00:00

32 lines
1.1 KiB
Docker

FROM php:8.4.12-cli-bookworm@sha256:f12c2232f02ba5bb9aec3b71af055979e424ef675e0be7d2a51338224a188a15 AS base
COPY --from=composer:2.8.5 /usr/bin/composer /usr/bin/composer
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/download/2.7.14/install-php-extensions /usr/local/bin/
RUN apt update && apt install -y bash git gpg postgresql-client vim zip
RUN install-php-extensions pdo pdo_pgsql zip intl redis
COPY ./docker/cli/php.ini /usr/local/etc/php/php.ini
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" > /etc/apt/sources.list.d/nodesource.list \
&& apt update \
&& apt install -y nodejs \
&& npm install -g yarn
RUN groupadd --gid 100000 app \
&& useradd --uid 100000 --gid 100000 --create-home --shell /bin/bash app
WORKDIR /app
################
FROM base AS dev
RUN install-php-extensions xdebug
USER app
################
# FROM base AS prod
# The cli container is strictly for dev at this time.