add dockerfile
All checks were successful
/ ls (pull_request) Successful in 30s

This commit is contained in:
Jonas 2024-06-15 22:36:31 +02:00
parent 167ece94d4
commit b4bc4dba1b
Signed by: lubiana
SSH key fingerprint: SHA256:gkqM8DUX4Blf6P52fycW8ISTd+4eAHH+Uzu9iyc8hAM
2 changed files with 18 additions and 3 deletions

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