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",