File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 1+ # #############################################
12# Stage 1: Install node dependencies and run gulp
2- FROM node:8 as npm
3+ # #############################################
4+
5+ FROM node:11 as npm
36WORKDIR /app
7+
48COPY package.json /app
59COPY package-lock.json /app
610RUN npm install
@@ -9,10 +13,14 @@ COPY resources /app/resources
913COPY gulpfile.js /app
1014RUN npm run gulp
1115
16+ # #############################################
1217# Stage 2: Composer, nginx and fpm
18+ # #############################################
19+
1320FROM bkuhl/fpm-nginx:7.3
1421WORKDIR /var/www/html
1522
23+ # Contains laravel echo server proxy configuration
1624COPY /nginx.conf /etc/nginx/conf.d
1725
1826USER www-data
@@ -32,9 +40,10 @@ ADD --chown=www-data:www-data /database /var/www/html/database
3240ADD --chown=www-data:www-data /config /var/www/html/config
3341ADD --chown=www-data:www-data /app /var/www/html/app
3442
35- RUN composer dump-autoload --optimize --no-dev
36- RUN touch /var/www/html/database/database.sqlite
37- RUN php artisan optimize && php artisan migrate
43+ RUN composer dump-autoload --optimize --no-dev \
44+ && touch /var/www/html/database/database.sqlite \
45+ && php artisan optimize \
46+ && php artisan migrate
3847
3948ADD --chown=www-data:www-data /resources /var/www/html/resources
4049COPY --chown=www-data:www-data --from=npm /app/public/css /var/www/html/public/css
You can’t perform that action at this time.
0 commit comments