add dockerfile #14

Merged
lubiana merged 4 commits from road-to-prod into main 2024-06-22 19:48:24 +00:00
2 changed files with 18 additions and 3 deletions
Showing only changes of commit b4bc4dba1b - Show all commits

15
Dockerfile Normal file
View file

@ -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

View file

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