mirror of
https://gh.wpcy.net/https://github.com/fairpm/aspirecloud.git
synced 2026-06-20 02:22:28 +08:00
Bumps php from 8.4.13-cli-bookworm to 8.4.14-cli-bookworm. --- updated-dependencies: - dependency-name: php dependency-version: 8.4.14-cli-bookworm dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
36 lines
1.1 KiB
Docker
36 lines
1.1 KiB
Docker
FROM php:8.4.14-cli-bookworm@sha256:8ee2296ac8fafec3f0a414430c4a6ae90fe9b9165b2eda1146e4e554d7b33daa 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 postgresql-client zip
|
|
|
|
RUN install-php-extensions pdo pdo_pgsql zip intl opcache redis
|
|
|
|
COPY ./docker/cli/php.ini /usr/local/etc/php/php.ini
|
|
|
|
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
|
|
|
|
# no workie, composer can't create /app/vendor ¯\_(ツ)_/¯
|
|
# COPY --chown=app:app . /app
|
|
|
|
COPY . /app
|
|
RUN chown -R app:app /app
|
|
|
|
USER app
|
|
|
|
RUN composer install --no-dev --no-interaction --no-progress --optimize-autoloader --working-dir=/app \
|
|
&& mkdir -p storage/logs storage/app/public storage/app/private storage/framework/sessions storage/framework/views storage/framework/cache/data
|