Kumora/Dockerfile
Renovate Bot e42d09b788
Some checks failed
Apply PHP CS Fixer / php-cs-fixer (push) Successful in 22s
CI / build-test (push) Failing after 1m26s
rector / Rector (push) Failing after 1m12s
rector / Rector (pull_request) Failing after 1m10s
Update dunglas/frankenphp Docker digest to bc16b2c
2025-02-19 00:02:03 +00:00

42 lines
935 B
Docker

FROM dunglas/frankenphp@sha256:bc16b2c6900748ffd951b751a0798dba6a13ffa22ed4c793cf460ca0be4bc446
ENV SERVER_NAME=":80"
ARG APP_ENV=prod
RUN apt-get update && apt-get install -y --no-install-recommends \
acl \
file \
gettext \
git \
&& rm -rf /var/lib/apt/lists/*
RUN set -eux; \
install-php-extensions \
@composer \
apcu \
intl \
opcache \
zip \
pdo_mysql \
;
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
ENV COMPOSER_ALLOW_SUPERUSER=1
COPY --link composer.* symfony.* ./
ENV APP_ENV=${APP_ENV}
# On ajoute un if pour installer les dépendances de dev si APP_ENV est égal à dev
RUN composer install --no-cache --prefer-dist --no-dev --optimize-autoloader --no-scripts --no-progress;
COPY . .
RUN rm -rf var/tailwind \
&& php bin/console importmap:install \
&& php bin/console tailwind:build \
&& php bin/console asset-map:compile \
&& php bin/console cache:clear