--wip-- [skip ci]
Some checks failed
Cadoles/hydra-sql/pipeline/head There was a failure building this commit
Some checks failed
Cadoles/hydra-sql/pipeline/head There was a failure building this commit
This commit is contained in:
44
misc/images/hydra-sql-dev/Dockerfile
Normal file
44
misc/images/hydra-sql-dev/Dockerfile
Normal file
@@ -0,0 +1,44 @@
|
||||
## NPM INSTALL ##
|
||||
FROM node:24.7.0 AS npm-install
|
||||
|
||||
ARG ENCORE_MODE=dev
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
RUN npm install \
|
||||
&& npm run dev
|
||||
|
||||
## FINAL IMAGE ##
|
||||
FROM dunglas/frankenphp:1.9.1-php8.4-bookworm
|
||||
|
||||
ENV APP_ENV=prod \
|
||||
APP_DEBUG=0 \
|
||||
APP_LOCALES="fr,en" \
|
||||
BASE_PATH=""
|
||||
|
||||
COPY ./misc/files/Caddyfile /etc/frankenphp/Caddyfile
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=npm-install /app .
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
|
||||
|
||||
RUN apt-get -y update \
|
||||
&& apt-get -y install sudo \
|
||||
&& curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | sudo -E bash \
|
||||
&& apt-get -y install \
|
||||
git \
|
||||
vim \
|
||||
symfony-cli \
|
||||
&& cp $PHP_INI_DIR/php.ini-development $PHP_INI_DIR/php.ini \
|
||||
&& install-php-extensions \
|
||||
pdo_pgsql \
|
||||
pdo_mysql \
|
||||
opcache \
|
||||
apcu \
|
||||
xdebug \
|
||||
redis \
|
||||
&& composer install --ignore-platform-reqs --no-cache \
|
||||
&& bin/console assets:install --symlink --relative
|
Reference in New Issue
Block a user