Skip to content

Commit

Permalink
feat: install php82
Browse files Browse the repository at this point in the history
  • Loading branch information
mhzawadi committed Jul 1, 2024
1 parent 602a0c3 commit 5df0a99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ FROM alpine:3.19
MAINTAINER Matthew Horwood <[email protected]>

RUN apk update \
&& apk add nginx php81-fpm php81-session \
php81-gd php81-mbstring php81-mysqli php81-openssl \
php81-xml php81-dom php81-intl php81-bcmath composer curl \
&& apk add nginx php82-fpm php82-session \
php82-gd php82-mbstring php82-mysqli php82-openssl \
php82-xml php82-dom php82-intl php82-bcmath composer curl \
&& rm -f /var/cache/apk/* \
&& mkdir -p /var/www/html/ \
&& mkdir -p /run/nginx; \
Expand All @@ -29,8 +29,8 @@ RUN cd /tmp && \
unzip /tmp/${IP_VERSION}.zip && \
cp -r ip/* /var/www/html/ && \
chmod +x /config/start.sh; \
cp /config/php.ini /etc/php81/php.ini && \
cp /config/php_fpm_site.conf /etc/php81/php-fpm.d/www.conf; \
cp /config/php.ini /etc/php82/php.ini && \
cp /config/php_fpm_site.conf /etc/php82/php-fpm.d/www.conf; \
cp /config/nginx_site.conf /etc/nginx/http.d/default.conf; \
chown nobody:nginx /var/www/html/* -R;

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ FROM alpine:3.17
MAINTAINER Matthew Horwood <[email protected]>

RUN apk update \
&& apk add nginx php81-fpm \
php81-gd php81-mbstring php81-mysqli php81-openssl \
php81-xml php81-intl php81-bcmath composer curl \
&& apk add nginx php82-fpm \
php82-gd php82-mbstring php82-mysqli php82-openssl \
php82-xml php82-intl php82-bcmath composer curl \
&& rm -f /var/cache/apk/* \
&& mkdir -p /var/www/html/ \
&& mkdir -p /run/nginx; \
Expand Down

0 comments on commit 5df0a99

Please sign in to comment.