File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ storage/framework/sessions/*
12
12
storage /framework /views /*
13
13
storage /logs /*
14
14
tests
15
+ vendor
Original file line number Diff line number Diff line change
1
+ FROM weinstein/composer:latest as php-builder
2
+ COPY composer* ./
3
+ RUN php -f composer.phar install \
4
+ --no-autoloader \
5
+ --no-scripts \
6
+ --no-interaction
7
+ COPY . .
8
+ RUN php -f composer.phar install --no-dev -o
1
9
FROM node:9.5.0 as js-builder
10
+
2
11
WORKDIR /app
3
12
COPY package*.json /app/
4
13
RUN npm install
@@ -7,15 +16,11 @@ RUN ./node_modules/bower/bin/bower install --allow-root
7
16
COPY . .
8
17
RUN ./node_modules/grunt-cli/bin/grunt
9
18
10
- FROM weinstein/composer:latest as php-builder
11
- COPY . .
12
- RUN php -f composer.phar install --no-dev -o
13
-
14
19
FROM weinstein/webserver:latest
15
20
COPY . /var/www
21
+ COPY --from=php-builder /var/www/vendor /var/www/vendor
16
22
COPY --from=js-builder /app/public/css/*.css /var/www/public/css/
17
23
COPY --from=js-builder /app/public/js /var/www/public/js
18
- COPY --from=php-builder /var/www/vendor /var/www/vendor
19
24
USER root
20
25
RUN chown -R www-data /var/www && \
21
26
chgrp -R 0 /var/www && \
Original file line number Diff line number Diff line change 10
10
"php" : " >=7.1.0" ,
11
11
"ext-zip" : " 1.*" ,
12
12
"ext-zlib" : " *" ,
13
- "laravel/framework" : " 5.6 .*" ,
13
+ "laravel/framework" : " 5.2 .*" ,
14
14
"itbz/fpdf" : " 1.7.3" ,
15
15
"laravelcollective/html" : " ^5.2" ,
16
16
"fzaninotto/faker" : " ~1.4" ,
You can’t perform that action at this time.
0 commit comments