Compare commits
2 Commits
4d1cfeadcd
...
eb28e41930
| Author | SHA1 | Date | |
|---|---|---|---|
| eb28e41930 | |||
| 559ab4e2a8 |
@@ -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
|
||||
|
||||
@@ -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 "$@"
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user