-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (18 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
28 lines (18 loc) · 1.01 KB
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
# syis/php-nginx:tagname
FROM php:8.1-fpm-alpine3.17
MAINTAINER fabrizio@fubelli.org
# Nginx stable: https://github.com/nginxinc/docker-nginx/blob/master/stable/alpine/Dockerfile
RUN apk --update add bash curl nginx openssl autoconf \
dpkg-dev dpkg file g++ gcc libc-dev make re2c
ARG composer_hash='55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae'
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "if (hash_file('sha384', 'composer-setup.php') === '${composer_hash}') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php --install-dir=/bin --filename=composer \
&& php -r "unlink('composer-setup.php');"
RUN mkdir -p /run/nginx
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY php-fpm/ /usr/local/etc/php-fpm.d/
COPY start-php-fpm-nginx.sh /usr/local/bin/start-php-fpm-nginx
EXPOSE 80 443
STOPSIGNAL SIGQUIT
CMD start-php-fpm-nginx