-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
35 lines (28 loc) · 911 Bytes
/
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
FROM php:7.4-cli
RUN apt-get update && apt-get install -y libuv1-dev libevent-dev libssl-dev git libzip-dev
RUN docker-php-ext-install zip
RUN pecl install channel://pecl.php.net/uv-0.2.4
RUN docker-php-ext-enable uv
RUN docker-php-ext-install sockets
RUN pecl install event
RUN docker-php-ext-enable event
RUN pecl install ev
RUN docker-php-ext-enable ev
RUN mkdir ~/lib && \
cd ~/lib && \
git clone https://github.com/expressif/pecl-event-libevent.git && \
cd pecl-event-libevent && \
phpize && \
./configure && \
make && \
make install
RUN docker-php-ext-enable libevent
WORKDIR /var/www/project
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
COPY composer.json ./composer.json
COPY composer.lock ./composer.lock
COPY src ./src
COPY tests ./tests
COPY phpunit.xml ./phpunit.xml
RUN composer install
COPY demo ./demo