-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.alpine
37 lines (25 loc) · 1010 Bytes
/
Dockerfile.alpine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM php:alpine3.10
MAINTAINER "Markus Näther <[email protected]>"
# Upgrade apk
RUN apk update && apk upgrade
# Install basics
RUN apk -u add git sqlite sqlite-libs curl php7-pdo php7-pdo_sqlite php7-sqlite3
#python
# Install PHP extensions
ADD install_php.sh /usr/sbin/install_php.sh
ENV XDEBUG_VERSION 2.9.4
RUN /usr/sbin/install_php.sh
RUN mkdir -p /etc/ssl/certs && update-ca-certificates
ADD install_nodes.sh /usr/sbin/install_nodes.sh
RUN /usr/sbin/install_nodes.sh
COPY . /var/www
WORKDIR /var/www
RUN mkdir -p storage/framework
RUN mkdir storage/framework/sessions storage/framework/views storage/framework/cache
RUN composer update --no-interaction --ansi
RUN composer install --no-interaction --ansi
EXPOSE 8000
# TODO(naetherm): For testing purposes, remove in production because there we are using mysql
RUN touch database/database.sqlite && php artisan migrate
CMD php artisan serve --host 0.0.0.0
#HEALTHCHECK --interval=1m CMD curl -f http://localhost/ || exit 1