mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 10:41:32 +00:00
27 lines
817 B
Docker
27 lines
817 B
Docker
FROM php:8.2-fpm-alpine
|
|
|
|
ENV PHPGROUP=streamline
|
|
ENV PHPUSER=streamline
|
|
|
|
RUN set -eux; \
|
|
adduser -g ${PHPGROUP} -s /bin/sh -D ${PHPUSER}; \
|
|
sed -i "s/user = www-data/user = ${PHPUSER}/g" /usr/local/etc/php-fpm.d/www.conf; \
|
|
sed -i "s/group = www-data/group = ${PHPGROUP}/g" /usr/local/etc/php-fpm.d/www.conf; \
|
|
mkdir -p /var/www/html/public; \
|
|
docker-php-ext-install pdo pdo_mysql opcache
|
|
|
|
COPY .docker/php/opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
|
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
|
|
COPY ./ /var/www/html
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
RUN set -eux; \
|
|
composer install; \
|
|
chmod 777 -R /var/www/html/storage; \
|
|
chown -R www-data:www-data /var/www/html
|
|
|
|
CMD ["php-fpm", "-y", "/usr/local/etc/php-fpm.conf", "-R"]
|