-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: base docker image on Alphine 3.19, update to PHP 8.3, remove d…
…ead instances (merge pull request #32 from codedipper/docker-alpine3.19) base docker on Alpine 3.19, update to PHP 8.3, remove dead instances
- Loading branch information
Showing
3 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
FROM nginx:mainline-alpine-slim | ||
FROM alpine:3.19 | ||
|
||
RUN apk add php82 php82-fpm php82-dom php82-curl php82-json php82-openssl --no-cache | ||
RUN sed -i 's/user nginx;/user nobody;/' /etc/nginx/nginx.conf \ | ||
&& sed -i 's/listen = 127.0.0.1:9000/listen = \/run\/php-fpm82.sock/' /etc/php82/php-fpm.d/www.conf \ | ||
&& sed -i 's/;listen.owner/listen.owner/' /etc/php82/php-fpm.d/www.conf \ | ||
&& sed -i 's/;listen.group/listen.group/' /etc/php82/php-fpm.d/www.conf \ | ||
&& sed -i 's/;listen.mode/listen.mode/' /etc/php82/php-fpm.d/www.conf \ | ||
&& sed -i 's/;listen.allowed_clients/listen.allowed_clients/' /etc/php82/php-fpm.d/www.conf | ||
RUN apk add php83 php83-fpm php83-dom php83-curl php83-json php83-openssl nginx --no-cache | ||
RUN sed -i 's/user nginx;/user nobody;/' /etc/nginx/nginx.conf \ | ||
&& sed -i 's/listen = 127.0.0.1:9000/listen = \/run\/php-fpm83.sock/' /etc/php83/php-fpm.d/www.conf \ | ||
&& sed -i 's/;listen.owner/listen.owner/' /etc/php83/php-fpm.d/www.conf \ | ||
&& sed -i 's/;listen.group/listen.group/' /etc/php83/php-fpm.d/www.conf \ | ||
&& sed -i 's/;listen.mode/listen.mode/' /etc/php83/php-fpm.d/www.conf \ | ||
&& sed -i 's/;listen.allowed_clients/listen.allowed_clients/' /etc/php83/php-fpm.d/www.conf | ||
|
||
RUN mkdir -p /var/www/binternet | ||
COPY . /var/www/binternet | ||
COPY nginx.conf /etc/nginx/conf.d/binternet.conf | ||
RUN rm /var/www/binternet/nginx.conf /etc/nginx/conf.d/default.conf | ||
COPY nginx.conf /etc/nginx/http.d/binternet.conf | ||
RUN rm /var/www/binternet/nginx.conf /etc/nginx/http.d/default.conf | ||
|
||
EXPOSE 80 | ||
ENTRYPOINT ["/bin/sh", "-c" , "/usr/sbin/php-fpm82 -D && /usr/sbin/nginx -c /etc/nginx/nginx.conf -g 'daemon off;'"] | ||
ENTRYPOINT ["/bin/sh", "-c" , "/usr/sbin/php-fpm83 -D && /usr/sbin/nginx -c /etc/nginx/nginx.conf -g 'daemon off;'"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters