-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 848 Bytes
/
Dockerfile
File metadata and controls
29 lines (23 loc) · 848 Bytes
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
FROM php:7.4-cli-alpine
WORKDIR /app
RUN apk add --no-cache \
bash \
file \
gettext \
make \
git \
vim \
zip \
shadow \
tzdata
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions \
&& install-php-extensions zip xdebug \
&& rm -rf /tmp/* /var/tmp/*
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN curl --output composer-setup.php https://getcomposer.org/installer \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& rm composer-setup.php
ENV XDEBUG_CONFIG='client_host=host.docker.internal client_port=9003 start_with_request=yes idekey=PHPSTORM'
ENV XDEBUG_MODE=debug
ENV PHP_IDE_CONFIG='serverName=fakturownia'