39 lines
1.2 KiB
Docker
39 lines
1.2 KiB
Docker
FROM php:7.4-fpm-alpine
|
|
|
|
ENV ACCEPT_EULA=Y
|
|
|
|
WORKDIR /app
|
|
|
|
# Install nginx
|
|
RUN apk add --no-cache nginx supervisor bash
|
|
|
|
# Install PHP Extensions
|
|
RUN set -ex && apk --no-cache add icu-dev postgresql-dev
|
|
RUN docker-php-ext-install opcache pdo pgsql pdo_pgsql\
|
|
&& docker-php-ext-enable pdo_pgsql
|
|
RUN docker-php-ext-configure intl && docker-php-ext-install intl
|
|
|
|
|
|
# Copy php-fpm configs
|
|
COPY ./_docker/php-fpm/www.conf /usr/local/etc/php-fpm.d/zz-docker.conf
|
|
COPY ./_docker/php-fpm/php.ini /usr/local/etc/php/conf.d
|
|
COPY ./_docker/php-fpm/opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
|
# COPY ./_docker/php-fpm/session.ini /usr/local/etc/php/conf.d/session.ini
|
|
|
|
# Copy nginx-configs
|
|
COPY ./_docker/nginx/app.conf /etc/nginx/conf.d/default.conf
|
|
COPY ./_docker/nginx/nginx.conf /etc/nginx/nginx.conf
|
|
# COPY ./_docker/nginx/footer.conf /etc/nginx/footer.conf
|
|
|
|
# Copy supervisord config
|
|
COPY ./_docker/supervisord/supervisord.conf /etc/supervisord.conf
|
|
# COPY ./_docker/supervisord/init.sh /init.sh
|
|
|
|
# COPY --chown=www-data:www-data ./src .
|
|
|
|
ARG APP_VERSION
|
|
ENV APP_VERSION=$APP_VERSION
|
|
|
|
EXPOSE 80
|
|
# ENTRYPOINT [ "/init.sh" ]
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] |