summaryrefslogtreecommitdiff
path: root/docker/dev/Dockerfile
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-10-27 12:20:30 +0100
committerGitHub <noreply@github.com>2019-10-27 12:20:30 +0100
commit360a27016184bce3039fdbbb45b8f7b6bf02da3a (patch)
treedf2a3794ae4248b8efee23d01981b2451ca4fa2e /docker/dev/Dockerfile
parent9b08b951a2f7036519a9711ff4aa32a8709e261d (diff)
parent545eb291b6d32c613f814eefc8e80e39899b1e90 (diff)
Merge pull request #662 from weeman1337/feature/660-docker-dev
Improves the docker workflow
Diffstat (limited to 'docker/dev/Dockerfile')
-rw-r--r--docker/dev/Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/docker/dev/Dockerfile b/docker/dev/Dockerfile
new file mode 100644
index 00000000..ef514102
--- /dev/null
+++ b/docker/dev/Dockerfile
@@ -0,0 +1,19 @@
+# Engelsystem PHP FPM development image including Xdebug
+FROM php:7-fpm-alpine AS es_php_fpm
+WORKDIR /var/www
+RUN apk add --no-cache icu-dev $PHPIZE_DEPS && \
+ pecl install xdebug && \
+ docker-php-ext-install intl pdo_mysql && \
+ docker-php-ext-enable xdebug
+RUN echo -e "xdebug.remote_enable=1\nxdebug.remote_connect_back=1\n" >> /usr/local/etc/php/conf.d/xdebug.ini
+
+ENV TRUSTED_PROXIES 10.0.0.0/8,::ffff:10.0.0.0/8,\
+ 127.0.0.0/8,::ffff:127.0.0.0/8,\
+ 172.16.0.0/12,::ffff:172.16.0.0/12,\
+ 192.168.0.0/16,::ffff:192.168.0.0/16,\
+ ::1/128,fc00::/7,fec0::/10
+
+# Engelsystem development workspace
+# Contains all tools required to build / manage the system
+FROM es_php_fpm AS es_workspace
+RUN apk add --no-cache composer gettext nodejs npm yarn