Fix the PHP Docker image

This commit is contained in:
Nabeel Shahzad
2019-05-10 19:46:50 -05:00
parent 4dd3fc5244
commit 099600cf4c
2 changed files with 13 additions and 9 deletions

View File

@@ -29,6 +29,11 @@ class HomeController extends Controller
return view('system/errors/not_installed');
}
// No users
if (!$users) {
return view('system/errors/not_installed');
}
return view('home', [
'users' => $users,
]);

View File

@@ -1,13 +1,12 @@
FROM php:7.3-fpm
RUN docker-php-ext-install \
mysqli \
pdo \
openssl \
mbstring \
tokenizer \
curl \
json \
gmp
RUN apt-get update
RUN apt-get install -y libgmp-dev
RUN ln -sf /dev/stderr /var/log/fpm-error.log
RUN docker-php-ext-install \
mysqli \
pdo \
pdo_mysql \
gmp