New docker things.

This commit is contained in:
James Cole 2017-10-11 10:07:09 +02:00
parent 011e28e8c2
commit 27d533dd5b
3 changed files with 7 additions and 7 deletions

View File

@ -46,12 +46,7 @@ COPY . $FIREFLY_PATH
RUN chown -R www-data:www-data /var/www && chmod -R 775 $FIREFLY_PATH/storage RUN chown -R www-data:www-data /var/www && chmod -R 775 $FIREFLY_PATH/storage
RUN cat .env.docker | envsubst > .env && cat .env RUN composer install --prefer-dist --no-dev --no-scripts
RUN composer install --prefer-dist --no-dev
RUN composer dump-autoload
RUN php artisan optimize
RUN php artisan package:discover
RUN php artisan firefly:instructions install
EXPOSE 80 EXPOSE 80

View File

@ -20,6 +20,7 @@ services:
- FF_DB_USER=firefly_db - FF_DB_USER=firefly_db
- FF_DB_PASSWORD=firefly_db_secret - FF_DB_PASSWORD=firefly_db_secret
- FF_APP_KEY=SomeRandomStringOf32CharsExactly - FF_APP_KEY=SomeRandomStringOf32CharsExactly
- FF_APP_ENV=production
ports: ports:
- "80:80" - "80:80"
links: links:

View File

@ -1,5 +1,9 @@
#!/bin/bash #!/bin/bash
# cat .env.docker | envsubst > .env
cat .env.docker | envsubst > .env && cat .env
composer dump-autoload
php artisan optimize
php artisan package:discover
php artisan firefly:instructions install
exec apache2-foreground exec apache2-foreground