File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ FROM composer:latest
2
+
3
+ RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D laravel
4
+
5
+ WORKDIR /var/www/html
Original file line number Diff line number Diff line change @@ -49,16 +49,19 @@ services:
49
49
- laravel
50
50
51
51
composer :
52
- image : composer:latest
52
+ build :
53
+ context : .
54
+ dockerfile : composer.dockerfile
53
55
container_name : composer
54
56
volumes :
55
57
- ./src:/var/www/html
56
58
working_dir : /var/www/html
57
59
depends_on :
58
60
- php
61
+ user : laravel
59
62
networks :
60
63
- laravel
61
- entrypoint : ['composer', '--ignore-platform-reqs'] # Install without other php modules required
64
+ entrypoint : ['composer', '--ignore-platform-reqs']
62
65
63
66
npm :
64
67
image : node:13.7
@@ -78,6 +81,7 @@ services:
78
81
depends_on :
79
82
- mysql
80
83
working_dir : /var/www/html
84
+ user : laravel
81
85
entrypoint : ['php', '/var/www/html/artisan']
82
86
networks :
83
87
- laravel
You can’t perform that action at this time.
0 commit comments