From b4bc4dba1b64717094c13f4a56a0abba2cdced3b Mon Sep 17 00:00:00 2001 From: lubiana Date: Sat, 15 Jun 2024 22:36:31 +0200 Subject: [PATCH] add dockerfile --- Dockerfile | 15 +++++++++++++++ composer.json | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dfea58c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM git.php.fail/lubiana/container/php:8.3 +RUN mkdir /app +WORKDIR /app +COPY bin/console /app/bin/console +COPY config /app/config +COPY migrations /app/migrations +COPY public /app/public +COPY src /app/src +COPY templates /app/templates +COPY composer.json /app/composer.json +COPY composer.lock /app/composer.lock +COPY .env /app/.env +RUN mkdir /app/var +ENV APP_ENV=prod +RUN composer install --no-dev --optimize-autoloader \ No newline at end of file diff --git a/composer.json b/composer.json index 273625d..9a7f726 100644 --- a/composer.json +++ b/composer.json @@ -70,11 +70,11 @@ "assets:install %PUBLIC_DIR%": "symfony-cmd" }, "post-install-cmd": [ - "@auto-scripts", - "config-transformer switch-format config" + "@auto-scripts" ], "post-update-cmd": [ - "@auto-scripts" + "@auto-scripts", + "config-transformer switch-format config" ], "lint": [ "rector",