Files
hydra-sql/misc/images/hydra-sql-dev/Dockerfile
Valentin Carroy 4c3d84d355
Some checks failed
Cadoles/hydra-sql/pipeline/head There was a failure building this commit
wip
2025-09-11 17:49:56 +02:00

39 lines
843 B
Docker

## BUILD COMPOSER ##
FROM composer:2.8.11 AS install-composer
WORKDIR /app
COPY . .
RUN composer install
## BUILD NPM ##
FROM node:24.7.0 AS install-npm
ARG ENCORE_MODE=dev
WORKDIR /app
COPY --from=install-composer /app .
RUN npm install \
&& npm run dev
## FINAL IMAGE ##
FROM dunglas/frankenphp:1.9.1-php8.4-bookworm
# ENV FRANKENPHP_CONFIG="worker ./public/index.php" \
# # APP_RUNTIME=Runtime\\FrankenPhpSymfony\\Runtime \
ENV APP_ENV=dev APP_DEBUG=1
COPY ./misc/compose/hydra-sql/Caddyfile /etc/frankenphp/Caddyfile
# COPY ./misc/compose/hydra-sql/frankenphp.caddyfile-dev /etc/frankenphp/Caddyfile.d/frankenphp.caddyfile
WORKDIR /app
COPY --from=install-npm /app .
RUN cp $PHP_INI_DIR/php.ini-development $PHP_INI_DIR/php.ini \
&& install-php-extensions \
pdo_pgsql \
pdo_mysql \
opcache