-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 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,4 +1,4 @@ | ||
FROM alpine:3.15 | ||
FROM alpine:3.11 | ||
|
||
LABEL Maintainer="Tim de Pater <[email protected]>" \ | ||
Description="Lightweight container with Nginx 1.14 & PHP-FPM 7.2 based on Alpine Linux." | ||
|
@@ -9,10 +9,6 @@ RUN apk --no-cache add php7 php7-session php7-common php7-fpm php7-pdo php7-xdeb | |
php7-xml php7-phar php7-intl php7-dom php7-ctype php7-zip php7-xmlwriter php7-xmlrpc \ | ||
git nginx supervisor curl zlib-dev zlib musl zip | ||
|
||
# fix work iconv library with alphine | ||
RUN apk add gnu-libiconv | ||
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php | ||
|
||
# Configure nginx | ||
COPY bootstrap/nginx.conf /etc/nginx/nginx.conf | ||
|
||
|
@@ -35,6 +31,10 @@ RUN chmod -R 777 /var/www/html | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer | ||
RUN composer install --ignore-platform-reqs --no-dev | ||
|
||
# Fix iconv | ||
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community gnu-libiconv | ||
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php | ||
|
||
EXPOSE 80 443 | ||
|
||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] |