Compare commits

..

2 Commits

Author SHA1 Message Date
eb28e41930 updates 2026-03-27 16:31:09 -04:00
559ab4e2a8 upd: entrypoint
Make sure the change the permissions to the var folder everytime we restart
2026-03-27 16:29:52 -04:00
4 changed files with 5 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ RUN crontab /etc/cron.d/get-audio
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --no-scripts --no-dev --optimize-autoloader
RUN mkdir /data
RUN mkdir -p /var/www/html/var/cache
RUN mkdir -p /var/www/html/var/cache/prod
RUN mkdir -p /var/www/html/var/log
RUN chown -R 33:33 /var/www/html /data

View File

@@ -2,5 +2,7 @@
# Start the cron service in the background
service cron start
chown -R www-data:www-data /var/www/html/var
# Execute the default Docker CMD (which starts Apache in the foreground)
exec "$@"

View File

@@ -12,7 +12,7 @@ shell_exec("symfony console doctrine:database:create --if-not-exists");
print "Updating migrations and setting permissions for data folder".PHP_EOL;
shell_exec("symfony console doctrine:schema:create");
shell_exec("chown -R www-data:www-data /data");
shell_exec("chown -R www-data:www-data /data /var/www/html/var/cache");
// import reference material

View File

@@ -14,6 +14,7 @@ use Symfony\Component\Uid\Uuid;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: UserRepository::class)]
#[ORM\Table(name: 'app_user')]
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_EMAIL', fields: ['email'])]
class User implements UserInterface, PasswordAuthenticatedUserInterface, JsonSerializable
{