summaryrefslogtreecommitdiffstats
path: root/ubi8-min-nginx-php74.dockerfile
blob: c7ceab188bb3d7d5f7fb6660acdbd202a60b950f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM registry.access.redhat.com/ubi8-minimal:latest

RUN echo -e "[php]\nname=php\nstream=7.4\nprofiles=common\nstate=enabled\n" >/etc/dnf/modules.d/php.module
RUN echo -e "[nginx]\nname=nginx\nstream=1.18\nprofiles=common\nstate=enabled\n" >/etc/dnf/modules.d/nginx.module

RUN microdnf update tzdata && \
    microdnf install nginx php-fpm php-common php-cli && \
    microdnf clean all

RUN mkdir -p /run/php-fpm
RUN echo '/usr/sbin/php-fpm --daemonize && /usr/sbin/nginx -g "daemon off;"' >/start.sh

EXPOSE 80
STOPSIGNAL SIGQUIT

ENTRYPOINT ["bash"]
CMD ["/start.sh"]