This commit is contained in:
38
misc/images/hydra-sql-dev/Dockerfile
Normal file
38
misc/images/hydra-sql-dev/Dockerfile
Normal file
@@ -0,0 +1,38 @@
|
||||
## 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
|
Reference in New Issue
Block a user