forked from CodelyTV/php-ddd-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (29 loc) · 1.03 KB
/
Dockerfile
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:8.1.6-fpm-alpine
WORKDIR /app
RUN wget https://github.com/FriendsOfPHP/pickle/releases/download/v0.7.9/pickle.phar \
&& mv pickle.phar /usr/local/bin/pickle \
&& chmod +x /usr/local/bin/pickle
RUN apk --update upgrade \
&& apk add --no-cache autoconf automake make gcc g++ bash icu-dev libzip-dev rabbitmq-c rabbitmq-c-dev \
&& docker-php-ext-install -j$(nproc) \
bcmath \
opcache \
intl \
zip \
pdo_mysql
RUN pickle install [email protected]
ADD etc/infrastructure/php/extensions/rabbitmq.sh /root/install-rabbitmq.sh
ADD etc/infrastructure/php/extensions/xdebug.sh /root/install-xdebug.sh
RUN apk add git
RUN sh /root/install-rabbitmq.sh
RUN sh /root/install-xdebug.sh
RUN docker-php-ext-enable \
amqp \
apcu \
opcache
RUN curl -sS https://get.symfony.com/cli/installer | bash -s - --install-dir /usr/local/bin
COPY etc/infrastructure/php/ /usr/local/etc/php/
# allow non-root users have home
RUN mkdir -p /opt/home
RUN chmod 777 /opt/home
ENV HOME /opt/home