blob: 749feba52f7f1172364ffbdd94467c2de2ec9b28 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
FROM nginx:alpine AS lizdotcoffee
RUN apk add --no-cache php84 php84-fpm \
&& sed -i 's/^listen = .*/listen = 127.0.0.1:9000/' /etc/php84/php-fpm.d/www.conf \
&& sed -i 's/^user = .*/user = nginx/;s/^group = .*/group = nginx/' /etc/php84/php-fpm.d/www.conf
RUN rm -f /usr/share/nginx/html/index.html /usr/share/nginx/html/50x.html
COPY html /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
ARG COMMIT=unknown
RUN printf '%s' "$COMMIT" > /usr/share/nginx/commit
EXPOSE 80
CMD ["sh", "-c", "php-fpm84 -D && nginx -g 'daemon off;'"]
|