-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathDockerfile
46 lines (32 loc) · 1.08 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
38
39
40
41
42
43
44
45
46
FROM php:8.2-cli
RUN apt-get update
# dependencies
RUN apt-get install -y ntp whois dnsutils ipcalc
# composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer \
&& chmod 755 /usr/bin/composer
# pcntl
RUN docker-php-ext-configure pcntl --enable-pcntl \
&& docker-php-ext-install pcntl
# pecl/ev
RUN pecl install -o -f ev \
&& docker-php-ext-enable ev
# zip
RUN apt-get install -y libzip-dev zlib1g-dev zip \
&& docker-php-ext-install zip
RUN rm -rf /var/lib/apt/lists/*
# php.ini
ADD .docker/php/docker-php.ini /usr/local/etc/php/conf.d/docker-php-enable-jit.ini
ADD .docker/php/docker-php-disable-assertions.ini /usr/local/etc/php/conf.d/docker-php-disable-assertions.ini
ADD .docker/php/docker-php-enable-jit.ini /usr/local/etc/php/conf.d/docker-php-enable-jit.ini
RUN apt-get clean
COPY ./src/ /app/src/
COPY ./config/ /app/config/
COPY ./storage/ /app/storage/
COPY ./public/ /app/public/
COPY ./composer.json /app/
COPY ./index.php /app/
WORKDIR /app
RUN composer install --no-interaction
EXPOSE 8080
CMD [ "php", "./index.php" ]