File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed
Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ COPY .docker/vhost.conf /etc/apache2/sites-available/000-default.conf
3737COPY ./composer.json ./composer.json
3838COPY ./composer.lock ./composer.lock
3939
40+ RUN composer install --no-dev --no-interaction --no-scripts
41+
4042# entrypoint
4143COPY .docker/docker-php-entrypoint /usr/local/bin/
4244
@@ -48,3 +50,7 @@ RUN chmod 777 -R storage
4850
4951# mode-root:
5052USER root
53+
54+ HEALTHCHECK --interval=50s \
55+ --timeout=600s \
56+ CMD curl -f http://localhost/api/hello || exit 1
Original file line number Diff line number Diff line change 44
55 cp /docker-laravel-api-dev/.env.example /docker-laravel-api-dev/.env
66
7- # Xdebug
7+ # Xdebug ----------------------------------------------------
88
99 if [ " ${XDEBUG_MODE} " == 1 ] ; then
10+ echo ' Installs require-dev dependencies'
11+ composer install --no-scripts
1012 echo ' Installing XDebug...'
1113 pecl install xdebug && docker-php-ext-enable xdebug
1214 echo ' XDebug installed!'
2628
2729 echo ' Running Migrations...'
2830 cd /docker-laravel-api-dev
29- composer install
31+ php artisan key:generate
3032 php artisan migrate
3133 echo ' Migrations done!'
3234
33-
3435# APACHE -----------------------------------
3536
3637# first arg is `-f` or `--some-option`
Original file line number Diff line number Diff line change 99 "laravel/framework" : " 5.5.*" ,
1010 "tymon/jwt-auth" : " dev-develop" ,
1111 "dingo/api" : " 2.0.0-alpha1" ,
12- "barryvdh/laravel-cors" : " ^0.9.3" ,
13- "tiendanube/php-sdk" : " >=1.0"
12+ "barryvdh/laravel-cors" : " ^0.9.3"
1413 },
1514 "require-dev" : {
1615 "fzaninotto/faker" : " ~1.4" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
66 APP_NAME : docker-laravel-api-dev
77 APP_ENV : local
88 APP_DEBUG : " true"
9- APP_KEY : base64:B4svAvz1VlCE6iiaKUy/qlmiV2E5JTj7+kCfS5nJpZI=
9+ APP_KEY :
1010 APP_LOG_LEVEL : debug
1111 APP_URL : " http://localhost"
1212 DB_CONNECTION : mysql
You can’t perform that action at this time.
0 commit comments