-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
38 lines (29 loc) · 759 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
30
31
32
33
34
35
36
37
38
FROM php:8.4-cli AS build
RUN apt-get update && apt-get install -y --no-install-recommends \
acl \
file \
gettext \
git \
libicu-dev \
libzip-dev \
&& rm -rf /var/lib/apt/lists/*
RUN set -eux; \
docker-php-ext-install \
intl \
opcache \
pcntl \
pdo_pgsql \
zip \
; \
pecl install apcu \
;
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
ENV COMPOSER_ALLOW_SUPERUSER=1
SHELL ["/bin/bash", "-eo", "pipefail", "-c"]
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
WORKDIR /app
ENV APP_RUNTIME "Zolex\\ReactPhpBundle\\Runtime\\ReactPhpRuntime"
ENV REACT_HOST "0.0.0.0"
COPY . .
RUN composer install
CMD [ "php", "/app/public/index.php" ]