File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change
1
+ # #############################################
1
2
# Stage 1: Install node dependencies and run gulp
2
- FROM node:8 as npm
3
+ # #############################################
4
+
5
+ FROM node:11 as npm
3
6
WORKDIR /app
7
+
4
8
COPY package.json /app
5
9
COPY package-lock.json /app
6
10
RUN npm install
@@ -9,10 +13,14 @@ COPY resources /app/resources
9
13
COPY gulpfile.js /app
10
14
RUN npm run gulp
11
15
16
+ # #############################################
12
17
# Stage 2: Composer, nginx and fpm
18
+ # #############################################
19
+
13
20
FROM bkuhl/fpm-nginx:7.3
14
21
WORKDIR /var/www/html
15
22
23
+ # Contains laravel echo server proxy configuration
16
24
COPY /nginx.conf /etc/nginx/conf.d
17
25
18
26
USER www-data
@@ -32,9 +40,10 @@ ADD --chown=www-data:www-data /database /var/www/html/database
32
40
ADD --chown=www-data:www-data /config /var/www/html/config
33
41
ADD --chown=www-data:www-data /app /var/www/html/app
34
42
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
38
47
39
48
ADD --chown=www-data:www-data /resources /var/www/html/resources
40
49
COPY --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