2024-01-16 15:54:06 +00:00
|
|
|
FROM php:8.3-fpm
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y unzip libzip-dev && rm -rf /var/cache/apt/*
|
|
|
|
RUN curl -sSL https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - | sh -s \
|
2024-01-17 09:21:43 +00:00
|
|
|
opentelemetry-php/ext-opentelemetry@main opcache zip grpc intl
|
2024-01-16 15:54:06 +00:00
|
|
|
RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer
|
|
|
|
RUN composer self-update
|
|
|
|
RUN usermod -a -G www-data root
|
|
|
|
RUN mkdir -p /var/www/html
|
|
|
|
RUN chown -R www-data:www-data /var/www/html
|
|
|
|
WORKDIR /var/www/html/
|
|
|
|
COPY composer.json composer.lock /var/www/html
|
|
|
|
COPY config /var/www/html/config
|
|
|
|
COPY bin /var/www/html/bin
|
|
|
|
COPY public /var/www/html/public
|
|
|
|
COPY src /var/www/html/src
|
|
|
|
COPY templates /var/www/html/templates
|
|
|
|
COPY src /var/www/html/src
|
|
|
|
# TODO: prod .env (type_of_image arg)
|
|
|
|
COPY .env /var/www/html
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
RUN chmod a+x bin
|
|
|
|
RUN composer install
|
|
|
|
|
|
|
|
# TODO: check-me
|