File tree Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ RUN apk info \
19
19
nginx \
20
20
zlib-dev \
21
21
icu-dev \
22
+ imagemagick \
22
23
imagemagick-dev \
23
24
libzip-dev \
24
25
libjpeg-turbo-dev \
@@ -38,22 +39,30 @@ RUN apk info \
38
39
xvfb \
39
40
chromium@edge \
40
41
chromium-chromedriver@edge \
41
- && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
42
+ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-png-dir=/usr/include/ --with- jpeg-dir=/usr/include/ \
42
43
&& docker-php-ext-install -j$(nproc) \
43
44
gd \
44
45
pdo_mysql \
45
46
zip \
46
47
bcmath \
47
48
exif \
48
- && docker-php-ext-install \
49
49
intl \
50
- zip \
51
50
opcache \
52
51
pcntl \
53
- && pecl install imagick \
54
- && docker-php-ext-enable imagick \
52
+ mbstring \
53
+ iconv \
54
+ && pecl install \
55
+ redis \
56
+ imagick \
57
+ && docker-php-ext-enable \
58
+ redis \
59
+ imagick \
55
60
&& apk del .build-deps
56
61
62
+ # fix iconv (see https://github.com/docker-library/php/issues/240#issuecomment-305038173)
63
+ RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ gnu-libiconv
64
+ ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
65
+
57
66
# change default shell
58
67
SHELL ["/bin/bash" , "-c" ]
59
68
@@ -96,3 +105,4 @@ RUN find /home/app -name "run-*.sh" -exec chmod -v +x {} \;
96
105
97
106
# run the application
98
107
CMD /home/app/run-dev.sh
108
+ EXPOSE 8080
Original file line number Diff line number Diff line change @@ -12,10 +12,14 @@ server {
12
12
13
13
index index.php index.html;
14
14
root /opt/app/public;
15
+ charset utf-8;
15
16
16
17
location / {
17
18
try_files $uri /index.php?$args;
18
19
}
20
+
21
+ location = /favicon.ico { access_log off; log_not_found off; }
22
+ location = /robots.txt { access_log off; log_not_found off; }
19
23
20
24
location ~ [^/]\.php(/|$) {
21
25
fastcgi_split_path_info ^(.+\.php)(/.+)$;
Original file line number Diff line number Diff line change 2
2
echo " Running via DEV script..."
3
3
cd /opt/app
4
4
5
- # Make sure Laravel can write its own files
5
+ # make sure Laravel can write its own files
6
6
mkdir -p /opt/app/storage/logs/
7
7
touch /opt/app/storage/logs/laravel.log
8
8
touch /opt/app/storage/logs/worker.log
9
9
chown www-data:www-data -R /opt/app/storage
10
10
chown www-data:www-data -R /opt/app/bootstrap/cache
11
11
12
+ # create storage symlink
13
+ php artisan storage:link
14
+
12
15
# install dependencies
13
16
composer install --prefer-dist --no-progress --no-interaction
14
17
yarn
You can’t perform that action at this time.
0 commit comments